From: Eric Biggers Date: Sat, 21 Jan 2023 20:32:15 +0000 (-0800) Subject: lib/support: remove unused label in get_devname() X-Git-Tag: v1.46.6~66 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9983b6f388daa1e565a690cabf1add9fa094ed5d;p=tools%2Fe2fsprogs.git lib/support: remove unused label in get_devname() 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 Signed-off-by: Eric Biggers Signed-off-by: Theodore Ts'o --- diff --git a/lib/support/devname.c b/lib/support/devname.c index 8c2349a..e0306dd 100644 --- a/lib/support/devname.c +++ b/lib/support/devname.c @@ -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: