[lvm-devel] [PATCH 14/29] Remove unneeded check for NULL pvd->system_id
Zdenek Kabelac
zkabelac at redhat.com
Thu Nov 25 10:55:18 UTC 2010
Remove check is for system_id defined as int8_t[].
Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
---
lib/format1/import-export.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/format1/import-export.c b/lib/format1/import-export.c
index e261737..796aa29 100644
--- a/lib/format1/import-export.c
+++ b/lib/format1/import-export.c
@@ -185,7 +185,7 @@ int export_pv(struct cmd_context *cmd, struct dm_pool *mem __attribute__((unused
}
/* Generate system_id if PV is in VG */
- if (!pvd->system_id || !*pvd->system_id)
+ if (!*pvd->system_id)
if (!_system_id(cmd, (char *)pvd->system_id, ""))
return_0;
--
1.7.3.2
More information about the lvm-devel
mailing list