master - libdm: fix parentheses in assignment + comparison
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a02db1c45ab571d0c614d269a713b56cd47c2e1e Commit: a02db1c45ab571d0c614d269a713b56cd47c2e1e Parent: a65649b45d0d0a417b64bf9918b2aeedb7f3993b Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Sep 20 14:21:38 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Sep 20 15:14:16 2017 +0200
libdm: fix parentheses in assignment + comparison
As reported, fix incorrect placement of parentheses.
TODO: add testing code.
--- WHATS_NEW_DM | 1 + libdm/libdm-report.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW_DM +1 -0
@@ -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
libdm/libdm-report.c +1 -1
@@ -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",