mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: || instead of |
More efficient with same result here.
This commit is contained in:
parent
1e6a926e85
commit
5577f2f4f0
@ -502,13 +502,13 @@ static int _ignore_suspended_snapshot_component(struct device *dev)
|
||||
log_error("Incorrect snapshot table found");
|
||||
goto_out;
|
||||
}
|
||||
r = r | _device_is_suspended(major1, minor1) | _device_is_suspended(major2, minor2);
|
||||
r = r || _device_is_suspended(major1, minor1) || _device_is_suspended(major2, minor2);
|
||||
} else if (!strcmp(target_type, "snapshot-origin")) {
|
||||
if (sscanf(params, "%d:%d", &major1, &minor1) != 2) {
|
||||
log_error("Incorrect snapshot-origin table found");
|
||||
goto_out;
|
||||
}
|
||||
r = r | _device_is_suspended(major1, minor1);
|
||||
r = r || _device_is_suspended(major1, minor1);
|
||||
}
|
||||
} while (next);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user