summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2017-01-06 19:31:35 -0500
committerShaohua Li <shli@fb.com>2017-01-09 13:58:10 -0800
commit32cd7cbbacf700885a2316275f188f2d5739b5f4 (patch)
treee607e360f792b19fc49cd90cba645476792aaa38 /drivers/md/raid5.c
parent394ed8e4743b0cfc5496fe49059fbfc2bc8eae35 (diff)
downloadblackbird-op-linux-32cd7cbbacf700885a2316275f188f2d5739b5f4.tar.gz
blackbird-op-linux-32cd7cbbacf700885a2316275f188f2d5739b5f4.zip
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>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 7b1da6e95a56..36c13e4be9c9 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -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;
OpenPOWER on IntegriCloud