Signed-off-by: Karel Zak <kzak@redhat.com>
#include "topology.h"
-
static int is_dm_device(dev_t devno)
{
- if (blkid_driver_has_major("device-mapper", major(devno)))
- return 1;
- return 0;
+ return blkid_driver_has_major("device-mapper", major(devno));
}
static int probe_dm_tp(blkid_probe pr, const struct blkid_idmag *mag)
{
if (major(devno) == EVMS_MAJOR)
return 1;
- if (blkid_driver_has_major("evms", major(devno)))
- return 1;
- return 0;
+ return blkid_driver_has_major("evms", major(devno));
}
static int probe_evms_tp(blkid_probe pr, const struct blkid_idmag *mag)
{
if (major(devno) == MD_MAJOR)
return 1;
- if (blkid_driver_has_major("md", major(devno)))
- return 1;
- return 0;
+ return blkid_driver_has_major("md", major(devno));
}
static int probe_md_tp(blkid_probe pr, const struct blkid_idmag *mag)