strcpy(dev, _PATH_DEV_BYUUID "/");
len = strlen(_PATH_DEV_BYUUID "/");
- if (!volume_id_encode_string(uuid, &dev[len], sizeof(dev) - len) != 0)
+ if (!volume_id_encode_string(uuid, &dev[len], sizeof(dev) - len))
return NULL;
return canonicalize(dev);
}
return NULL;
strcpy(dev, _PATH_DEV_BYLABEL "/");
len = strlen(_PATH_DEV_BYLABEL "/");
- if (!volume_id_encode_string(label, &dev[len], sizeof(dev) - len) != 0)
+ if (!volume_id_encode_string(label, &dev[len], sizeof(dev) - len))
return NULL;
return canonicalize(dev);
}