Skip to contentSkip to conversation

LVM2/lib/locking locking.h

PATCH [email protected] 1 participant 1 message Feb 27, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-27 09:52:37

Modified files:
lib/locking : locking.h

Log message:
Ignore result of unlock explicitely

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/locking/locking.h.diff?cvsroot=lvm2&r1=1.74&r2=1.75

lib/locking/locking.h +1 -1
@@ -163,7 +163,7 @@
 	do { \
 		if (is_real_vg(vol)) \
 			sync_dev_names(cmd); \
-		lock_vol(cmd, vol, LCK_VG_UNLOCK); \
+		(void) lock_vol(cmd, vol, LCK_VG_UNLOCK); \
 	} while (0)
 #define unlock_and_release_vg(cmd, vg, vol) \
 	do { \