1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-11 09:18:25 +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 c697497923
commit 9fc47d67df

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;