]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
md/raid5: Use correct IS_ERR() variation on pointer check
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sat, 7 Jan 2017 00:31:35 +0000 (19:31 -0500)
committerShaohua Li <shli@fb.com>
Mon, 9 Jan 2017 21:58:10 +0000 (13:58 -0800)
This fixes a build error on certain architectures, such as ppc64.

Fixes: 6995f0b247e("md: takeover should clear unrelated bits")
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c

index 7b1da6e95a5689c67bd0e17574eabae85307e3bd..36c13e4be9c9e5d0cedacb59910e7b4482eb6ddd 100644 (file)
@@ -7831,7 +7831,7 @@ static void *raid5_takeover_raid1(struct mddev *mddev)
        mddev->new_chunk_sectors = chunksect;
 
        ret = setup_conf(mddev);
-       if (!IS_ERR_VALUE(ret))
+       if (!IS_ERR(ret))
                mddev_clear_unsupported_flags(mddev,
                        UNSUPPORTED_MDDEV_FLAGS);
        return ret;