master - cleanup: drop extra ()
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fa1a0d170ad7193e9d0c6fe828a5c5df24806a54 Commit: fa1a0d170ad7193e9d0c6fe828a5c5df24806a54 Parent: 2a0ec5d3968414bff251f1750e911c9dd120ca69 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Aug 29 11:58:16 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Aug 29 13:11:35 2014 +0200
cleanup: drop extra ()
Pure '==' test doesn't need extra ().
--- libdm/libdm-report.c | 2 +- tools/lvchange.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
libdm/libdm-report.c +1 -1
@@ -2122,7 +2122,7 @@ static const char *_tok_value_string_list(const struct dm_report_field_type *ft, }/* Store information whether [] or {} was used. */ -if ((end_op_flag_expected ==SEL_LIST_LE )) +if (end_op_flag_expected ==SEL_LIST_LE ) ssl->type |=SEL_LIST_LS ;else ssl->type |=SEL_LIST_SUBSET_LS ;
tools/lvchange.c +1 -1
@@ -794,7 +794,7 @@ static int lvchange_writemostly(struct logical_volume *lv)* We don't bother checking the metadata area, * since writemostly only affects the data areas. */ -if ((seg_type (raid_seg, s) ==AREA_UNASSIGNED )) +if (seg_type (raid_seg, s) ==AREA_UNASSIGNED )continue ;if (lv_is_on_pv (seg_lv (raid_seg, s), pvl->pv)) {