From: Zdenek Kabelac Date: Mon, 27 Feb 2012 10:02:17 +0000 (+0000) Subject: Explicitely ignore result from sync_unlock() X-Git-Tag: v2_02_96~305 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=8df2c89cd454497d3e59da53d146eb7fa90e98d8;p=lvm2.git Explicitely ignore result from sync_unlock() Make it obvious to analyzer - we can't do anything better here anyway. --- diff --git a/daemons/clvmd/clvmd-command.c b/daemons/clvmd/clvmd-command.c index fc2c0bad0..540622ba3 100644 --- a/daemons/clvmd/clvmd-command.c +++ b/daemons/clvmd/clvmd-command.c @@ -355,7 +355,7 @@ void cmd_client_cleanup(struct local_client *client) lkid = (int)(long)dm_hash_get_data(lock_hash, v); lockname = dm_hash_get_key(lock_hash, v); DEBUGLOG("cleanup: Unlocking lock %s %x\n", lockname, lkid); - sync_unlock(lockname, lkid); + (void) sync_unlock(lockname, lkid); } dm_hash_destroy(lock_hash);