]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
md: fix a build warning
authorFiro Yang <firogm@gmail.com>
Thu, 11 Jun 2015 01:41:10 +0000 (09:41 +0800)
committerNeilBrown <neilb@suse.de>
Wed, 17 Jun 2015 00:00:38 +0000 (10:00 +1000)
commit4e023612325a9034a542bfab79f78b1fe5ebb841
tree82fb63b191b87524e127de03605c7a3a020ea1d8
parent713bc5c2deb437ef40d48374ae6a57e030bd9e35
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 <firogm@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c