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

lib/ldb/common/ldb.c:1091:3: warning: Value stored to 'ret' is never read <--[clang]
                ret = 0;
                ^     ~
1 warning generated.

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

index 44a487ba9871b7ebaff83baee3534a3856f52050..b9f5164c4e99bc0eb2292bb1e2d638bf11f4a957 100644 (file)
@@ -1088,7 +1088,6 @@ static int lock_search(struct ldb_module *lock_module, struct ldb_request *req)
        if (ret == LDB_ERR_UNSUPPORTED_CRITICAL_EXTENSION) {
                /* We might be talking LDAP */
                ldb_reset_err_string(ldb);
-               ret = 0;
                TALLOC_FREE(lock_context);
 
                return ldb_next_request(lock_module, req);