[lvm-devel] LVM2/lib/format1 import-export.c
zkabelac at sourceware.org
zkabelac at sourceware.org
Tue Nov 30 22:57:36 UTC 2010
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
--- LVM2/lib/format1/import-export.c 2010/09/30 21:06:51 1.115
+++ LVM2/lib/format1/import-export.c 2010/11/30 22:57:35 1.116
@@ -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;
More information about the lvm-devel
mailing list