]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-protocol: Do not ignore return value of ctdb_g_lock_pull()
authorMartin Schwenke <martin@meltin.net>
Fri, 7 Jun 2019 14:04:31 +0000 (00:04 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 5 Jul 2019 05:03:24 +0000 (05:03 +0000)
clang reports:

  ctdb/protocol/protocol_types.c:5191:3: warning: Value stored to 'ret' is never read

Found by csbuild.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/protocol/protocol_types.c

index 416d4843b7463a78f55ddcce65587f55bffdf8cd..8090dbddadfd0fe419c98d0c71fb45c24421d817 100644 (file)
@@ -5208,5 +5208,5 @@ done:
 
 fail:
        talloc_free(val);
-       return ENOMEM;
+       return ret;
 }