diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2017-01-07 01:31:35 +0100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2017-01-09 22:58:10 +0100 |
commit | 32cd7cbbacf700885a2316275f188f2d5739b5f4 (patch) | |
tree | e607e360f792b19fc49cd90cba645476792aaa38 /drivers/md | |
parent | md: cleanup mddev flag clear for takeover (diff) | |
download | linux-32cd7cbbacf700885a2316275f188f2d5739b5f4.tar.xz 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')
-rw-r--r-- | drivers/md/raid5.c | 2 |
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; |