Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104270
b: refs/heads/master
c: ce0c8e0
h: refs/heads/master
v: v3
  • Loading branch information
Andre Noll authored and Neil Brown committed Jul 11, 2008
1 parent ef6516b commit 226d5a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 05710466c9ef2e3ee55166934c801a2393c32f80
refs/heads/master: ce0c8e05f8ef93d991d665aade8c4bf35806ea1a
6 changes: 1 addition & 5 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,7 @@ static int sb_equal(mdp_super_t *sb1, mdp_super_t *sb2)
tmp1->nr_disks = 0;
tmp2->nr_disks = 0;

if (memcmp(tmp1, tmp2, MD_SB_GENERIC_CONSTANT_WORDS * 4))
ret = 0;
else
ret = 1;

ret = (memcmp(tmp1, tmp2, MD_SB_GENERIC_CONSTANT_WORDS * 4) == 0);
abort:
kfree(tmp1);
kfree(tmp2);
Expand Down

0 comments on commit 226d5a7

Please sign in to comment.