afs: Don't log table open error twice.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 13 Apr 2018 07:16:16 +0000 (09:16 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 22 Apr 2018 18:27:49 +0000 (20:27 +0200)
If ->open() fails, open_afs_tables() returns a negative error code,
so there is no need to log the error string.

afs.c

diff --git a/afs.c b/afs.c
index a5f86f9..538606a 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -685,8 +685,7 @@ static int open_afs_tables(void)
                ret = afs_tables[i].open(database_dir);
                if (ret >= 0)
                        continue;
-               PARA_ERROR_LOG("%s init: %s\n", afs_tables[i].name,
-                       para_strerror(-ret));
+               PARA_ERROR_LOG("could not open %s\n", afs_tables[i].name);
                break;
        }
        if (ret >= 0)