aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/md.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 8a03c953b887..20e03db8fdfc 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -572,11 +572,7 @@ static int sb_equal(mdp_super_t *sb1, mdp_super_t *sb2)
572 tmp1->nr_disks = 0; 572 tmp1->nr_disks = 0;
573 tmp2->nr_disks = 0; 573 tmp2->nr_disks = 0;
574 574
575 if (memcmp(tmp1, tmp2, MD_SB_GENERIC_CONSTANT_WORDS * 4)) 575 ret = (memcmp(tmp1, tmp2, MD_SB_GENERIC_CONSTANT_WORDS * 4) == 0);
576 ret = 0;
577 else
578 ret = 1;
579
580abort: 576abort:
581 kfree(tmp1); 577 kfree(tmp1);
582 kfree(tmp2); 578 kfree(tmp2);