]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/util: clang: Fix warning: Value stored to 'ret' is never read warning
authorNoel Power <noel.power@suse.com>
Tue, 18 Jun 2019 10:19:09 +0000 (10:19 +0000)
committerNoel Power <npower@samba.org>
Mon, 1 Jul 2019 13:34:11 +0000 (13:34 +0000)
Fixes:

lib/util/server_id_db.c:181:3: warning: Value stored to 'ret' is never read <--[clang]
                ret = tdb_store(tdb, key, talloc_tdb_data(ids), TDB_MODIFY);
                ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/util/server_id_db.c

index e190f457526051d1637f5cb8f4f1b04f4cb1b16e..bb61f316d29352c3682ad0b483f2eacdfa614eae 100644 (file)
@@ -184,7 +184,7 @@ int server_id_db_prune_name(struct server_id_db *db, const char *name,
 
        tdb_chainunlock(tdb, key);
 
-       return 0;
+       return ret;
 }
 
 int server_id_db_remove(struct server_id_db *db, const char *name)