Skip to contentSkip to conversation

LVM2/tools lvmcmdline.c

PATCH [email protected] 1 participant 1 message Aug 4, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-08-04 14:11:29

Modified files:
tools : lvmcmdline.c

Log message:
Remove self assigment which has no effect

Just a tiny code cleanup found by analyzer.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvmcmdline.c.diff?cvsroot=lvm2&r1=1.144&r2=1.145

tools/lvmcmdline.c +1 -2
@@ -274,8 +274,7 @@
 		if (i < 0) {
 			return 0;
 		} else if (i == 7) {
-			/* sectors */
-			v = v;
+			/* v is already in sectors */
 		} else if (i == 6) {
 			/* bytes */
 			v_tmp = (uint64_t) v;