]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
lib/support: remove unused label in get_devname()
authorEric Biggers <ebiggers@google.com>
Sat, 21 Jan 2023 20:32:15 +0000 (12:32 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 17:38:31 +0000 (12:38 -0500)
Address the following compiler warning with gcc -Wall:

devname.c: In function ‘get_devname’:
devname.c:61:1: warning: label ‘out_strdup’ defined but not used [-Wunused-label]
   61 | out_strdup:
      | ^~~~~~~~~~

Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/devname.c

index 8c2349a323f65137ec6761853d4d94f92e8e2c13..e0306ddfb844abd71a235a3d7d2b6f5bc9559fbe 100644 (file)
@@ -58,7 +58,6 @@ char *get_devname(blkid_cache cache, const char *token, const char *value)
                goto out;
        }
 
-out_strdup:
        if (is_file)
                ret = strdup(token);
 out: