mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
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]
This commit is contained in:
parent
290e58b0b6
commit
5635816094
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user