mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
parent
973db2a823
commit
bf8ea32876
@ -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 */
|
/* 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, ""))
|
if (!_system_id(cmd, (char *)pvd->system_id, ""))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user