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

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>
This commit is contained in:
Jes Sorensen 2017-01-06 19:31:35 -05:00 committed by Shaohua Li
parent 394ed8e474
commit 32cd7cbbac

View 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;