Commit 32cd7cbb authored by Jes Sorensen's avatar Jes Sorensen Committed by Shaohua Li

md/raid5: Use correct IS_ERR() variation on pointer check

This fixes a build error on certain architectures, such as ppc64.

Fixes: 6995f0b2("md: takeover should clear unrelated bits")
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent 394ed8e4
...@@ -7831,7 +7831,7 @@ static void *raid5_takeover_raid1(struct mddev *mddev) ...@@ -7831,7 +7831,7 @@ static void *raid5_takeover_raid1(struct mddev *mddev)
mddev->new_chunk_sectors = chunksect; mddev->new_chunk_sectors = chunksect;
ret = setup_conf(mddev); ret = setup_conf(mddev);
if (!IS_ERR_VALUE(ret)) if (!IS_ERR(ret))
mddev_clear_unsupported_flags(mddev, mddev_clear_unsupported_flags(mddev,
UNSUPPORTED_MDDEV_FLAGS); UNSUPPORTED_MDDEV_FLAGS);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment