master - cleanup: missing parentheses in a condition
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=56358160948554e1eb8dc7c5a86dbad4216376fd Commit: 56358160948554e1eb8dc7c5a86dbad4216376fd Parent: 290e58b0b6f001b2f3563304fd17d606eff51ba2 Author: Peter Rajnoha <[email protected]> AuthorDate: Mon Feb 10 09:03:08 2014 +0100 Committer: Peter Rajnoha <[email protected]> CommitterDate: Mon Feb 10 09:05:17 2014 +0100
cleanup: missing parentheses in a condition
gcc reports:
metadata/merge.c:229:58: warning: suggest parentheses around '&&' within '||' [-Wparentheses] metadata/merge.c:232:58: warning: suggest parentheses around '&&' within '||' [-Wparentheses] --- lib/metadata/merge.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
lib/metadata/merge.c +4 -4
@@ -227,11 +227,11 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg) }if ((seg_is_thin_pool (seg) && - (seg->chunk_size <DM_THIN_MIN_DATA_BLOCK_SIZE ) || - (seg->chunk_size >DM_THIN_MAX_DATA_BLOCK_SIZE )) || + ((seg->chunk_size <DM_THIN_MIN_DATA_BLOCK_SIZE ) || + (seg->chunk_size >DM_THIN_MAX_DATA_BLOCK_SIZE ))) || (seg_is_cache_pool (seg) && - (seg->chunk_size <DM_CACHE_MIN_DATA_BLOCK_SIZE ) || - (seg->chunk_size >DM_CACHE_MAX_DATA_BLOCK_SIZE ))) + ((seg->chunk_size <DM_CACHE_MIN_DATA_BLOCK_SIZE ) || + (seg->chunk_size >DM_CACHE_MAX_DATA_BLOCK_SIZE )))) { log_error("LV %s: %spool segment %u has chunk size %u out of range.", lv->name,