Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

md: Simplify uuid_equal().



Signed-off-by: default avatarAndre Noll <maan@systemlinux.org>
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
parent 0306d5ef
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -543,17 +543,12 @@ fail:

static int uuid_equal(mdp_super_t *sb1, mdp_super_t *sb2)
{
	if (	(sb1->set_uuid0 == sb2->set_uuid0) &&
		(sb1->set_uuid1 == sb2->set_uuid1) &&
		(sb1->set_uuid2 == sb2->set_uuid2) &&
		(sb1->set_uuid3 == sb2->set_uuid3))

		return 1;

	return 0;
	return 	sb1->set_uuid0 == sb2->set_uuid0 &&
		sb1->set_uuid1 == sb2->set_uuid1 &&
		sb1->set_uuid2 == sb2->set_uuid2 &&
		sb1->set_uuid3 == sb2->set_uuid3;
}


static int sb_equal(mdp_super_t *sb1, mdp_super_t *sb2)
{
	int ret;