mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 11:41:00 +07:00
md: Simplify uuid_equal().
Signed-off-by: Andre Noll <maan@systemlinux.org> Signed-off-by: Neil Brown <neilb@suse.de>
This commit is contained in:
parent
0306d5efbf
commit
05710466c9
@ -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)
|
||||
{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user