1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

Remove unneeded test for NULL

Remove check for system_id (it is defined as int8_t[], so cannot be NULL).
This commit is contained in:
Zdenek Kabelac 2010-11-30 22:57:35 +00:00
parent 973db2a823
commit bf8ea32876

View File

@ -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[0])
if (!_system_id(cmd, (char *)pvd->system_id, ""))
return_0;