From: Noel Power Date: Tue, 18 Jun 2019 10:12:49 +0000 (+0000) Subject: lib/ldb/common: clang: Fix Value stored to 'ret' is never read warning X-Git-Tag: ldb-2.0.5~122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b43daaccbb80824d8da10c84306ebf99268ec01;p=thirdparty%2Fsamba.git lib/ldb/common: clang: Fix Value stored to 'ret' is never read warning 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 Reviewed-by: Gary Lockyer --- diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c index 44a487ba987..b9f5164c4e9 100644 --- a/lib/ldb/common/ldb.c +++ b/lib/ldb/common/ldb.c @@ -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);