Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e02361

Browse files
firoghneilbrown
authored andcommitted
md: fix a build warning
Warning like this: drivers/md/md.c: In function "update_array_info": drivers/md/md.c:6394:26: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] !mddev->persistent != info->not_persistent|| Fix it as Neil Brown said: mddev->persistent != !info->not_persistent || Signed-off-by: Firo Yang <[email protected]> Signed-off-by: NeilBrown <[email protected]>
1 parent 713bc5c commit 4e02361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6394,7 +6394,7 @@ static int update_array_info(struct mddev *mddev, mdu_array_info_t *info)
63946394
mddev->ctime != info->ctime ||
63956395
mddev->level != info->level ||
63966396
/* mddev->layout != info->layout || */
6397-
!mddev->persistent != info->not_persistent||
6397+
mddev->persistent != !info->not_persistent ||
63986398
mddev->chunk_sectors != info->chunk_size >> 9 ||
63996399
/* ignore bottom 8 bits of state, and allow SB_BITMAP_PRESENT to change */
64006400
((state^info->state) & 0xfffffe00)

0 commit comments

Comments
 (0)