Whamcloud - gitweb
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 8c2349a..e0306dd 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: