Skip to contentSkip to conversation

LVM2/lib/format1 import-export.c

PATCH [email protected] 1 participant 1 message Nov 30, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-11-30 22:57:35

Modified files:
lib/format1 : import-export.c

Log message:

	Remove unneeded test for NULL
	
	Remove check for system_id (it is defined as int8_t[], so cannot be NULL).

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format1/import-export.c.diff?cvsroot=lvm2&r1=1.115&r2=1.116

lib/format1/import-export.c +1 -1
@@ -185,7 +185,7 @@
 	}
 
 	/* Generate system_id if PV is in VG */
-	if (!pvd->system_id || !*pvd->system_id)
+	if (!pvd->system_id[0])
 		if (!_system_id(cmd, (char *)pvd->system_id, ""))
 			return_0;