1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-22 06:50:52 +03:00

cov: clearer condition check

Make the code more obvious.
This commit is contained in:
Zdenek Kabelac 2019-06-25 15:08:10 +02:00
parent 66665f5e42
commit 8bea252a63

View File

@ -2478,7 +2478,12 @@ static int _lv_resume(struct cmd_context *cmd, const char *lvid_s,
* If vg_commit() did not happen, lvmcache_get_saved_vg_latest
* returns the old metadata which we use to resume LVs.
*/
if (!lv && lvid_s) {
if (!lv) {
if (!lvid_s) {
log_error(INTERNAL_ERROR "Requested resume of unindentified resource!");
return 0;
}
lvid = (const union lvid *) lvid_s;
vgid = (const char *)lvid->id[0].uuid;