mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: fix parentheses in assignment + comparison
As reported, fix incorrect placement of parentheses. TODO: add testing code.
This commit is contained in:
parent
a65649b45d
commit
a02db1c45a
@ -1,5 +1,6 @@
|
||||
Version 1.02.144 -
|
||||
======================================
|
||||
Correct return value testing when get reserved values for reporting.
|
||||
Take -S with dmsetup suspend/resume/clear/wipe_table/remove/deps/status/table.
|
||||
|
||||
Version 1.02.143 - 13th September 2017
|
||||
|
@ -3414,7 +3414,7 @@ static int _get_reserved_value(struct dm_report *rh, uint32_t field_num,
|
||||
handler = (dm_report_reserved_handler) tmp_value;
|
||||
if ((r = handler(rh, rh->selection->mem, field_num,
|
||||
DM_REPORT_RESERVED_GET_DYNAMIC_VALUE,
|
||||
rvw->matched_name, &tmp_value) <= 0)) {
|
||||
rvw->matched_name, &tmp_value)) <= 0) {
|
||||
if (r == -1)
|
||||
log_error(INTERNAL_ERROR "%s reserved value handler for field %s has missing"
|
||||
"implementation of DM_REPORT_RESERVED_GET_DYNAMIC_VALUE action",
|
||||
|
Loading…
Reference in New Issue
Block a user