diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 5ebfb4d79901..87620b705bee 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -731,9 +731,9 @@ static int super_90_load(mdk_rdev_t *rdev, mdk_rdev_t *refdev, int minor_version | |||
731 | else | 731 | else |
732 | rdev->desc_nr = sb->this_disk.number; | 732 | rdev->desc_nr = sb->this_disk.number; |
733 | 733 | ||
734 | if (refdev == 0) | 734 | if (!refdev) { |
735 | ret = 1; | 735 | ret = 1; |
736 | else { | 736 | } else { |
737 | __u64 ev1, ev2; | 737 | __u64 ev1, ev2; |
738 | mdp_super_t *refsb = (mdp_super_t*)page_address(refdev->sb_page); | 738 | mdp_super_t *refsb = (mdp_super_t*)page_address(refdev->sb_page); |
739 | if (!uuid_equal(refsb, sb)) { | 739 | if (!uuid_equal(refsb, sb)) { |
@@ -1116,9 +1116,9 @@ static int super_1_load(mdk_rdev_t *rdev, mdk_rdev_t *refdev, int minor_version) | |||
1116 | else | 1116 | else |
1117 | rdev->desc_nr = le32_to_cpu(sb->dev_number); | 1117 | rdev->desc_nr = le32_to_cpu(sb->dev_number); |
1118 | 1118 | ||
1119 | if (refdev == 0) | 1119 | if (!refdev) { |
1120 | ret = 1; | 1120 | ret = 1; |
1121 | else { | 1121 | } else { |
1122 | __u64 ev1, ev2; | 1122 | __u64 ev1, ev2; |
1123 | struct mdp_superblock_1 *refsb = | 1123 | struct mdp_superblock_1 *refsb = |
1124 | (struct mdp_superblock_1*)page_address(refdev->sb_page); | 1124 | (struct mdp_superblock_1*)page_address(refdev->sb_page); |