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:
Родитель
394ed8e474
Коммит
32cd7cbbac
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче