]> err.no Git - util-linux/commitdiff
mount: fix typo in volume_id code
authorKarel Zak <kzak@redhat.com>
Sat, 31 Jan 2009 00:50:26 +0000 (01:50 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Feb 2009 10:26:22 +0000 (11:26 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/fsprobe_volumeid.c

index 949db8298e0308d2ac35e030b5e216f638a41786..b9b137b8a804dbc3b2ed5304ad995deae0d1262c 100644 (file)
@@ -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);
 }