From b03ca06c5db1704d6527fc538adcef106ac66f89 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Sat, 31 Jan 2009 01:50:26 +0100 Subject: [PATCH] mount: fix typo in volume_id code Signed-off-by: Karel Zak --- mount/fsprobe_volumeid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mount/fsprobe_volumeid.c b/mount/fsprobe_volumeid.c index 949db829..b9b137b8 100644 --- a/mount/fsprobe_volumeid.c +++ b/mount/fsprobe_volumeid.c @@ -124,7 +124,7 @@ fsprobe_get_devname_by_uuid(const char *uuid) 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); } @@ -139,7 +139,7 @@ fsprobe_get_devname_by_label(const char *label) 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); } -- 2.39.5