Commit 05710466 authored by Andre Noll's avatar Andre Noll Committed by Neil Brown

md: Simplify uuid_equal().

Signed-off-by: default avatarAndre Noll <maan@systemlinux.org>
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
parent 0306d5ef
...@@ -543,17 +543,12 @@ static int read_disk_sb(mdk_rdev_t * rdev, int size) ...@@ -543,17 +543,12 @@ static int read_disk_sb(mdk_rdev_t * rdev, int size)
static int uuid_equal(mdp_super_t *sb1, mdp_super_t *sb2) static int uuid_equal(mdp_super_t *sb1, mdp_super_t *sb2)
{ {
if ( (sb1->set_uuid0 == sb2->set_uuid0) && return sb1->set_uuid0 == sb2->set_uuid0 &&
(sb1->set_uuid1 == sb2->set_uuid1) && sb1->set_uuid1 == sb2->set_uuid1 &&
(sb1->set_uuid2 == sb2->set_uuid2) && sb1->set_uuid2 == sb2->set_uuid2 &&
(sb1->set_uuid3 == sb2->set_uuid3)) sb1->set_uuid3 == sb2->set_uuid3;
return 1;
return 0;
} }
static int sb_equal(mdp_super_t *sb1, mdp_super_t *sb2) static int sb_equal(mdp_super_t *sb1, mdp_super_t *sb2)
{ {
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment