Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af6a6ce
)
lib/support: remove unused label in get_devname()
author
Eric Biggers
<ebiggers@google.com>
Sat, 21 Jan 2023 20:32:15 +0000
(12:32 -0800)
committer
Theodore 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
patch
|
blob
|
history
diff --git
a/lib/support/devname.c
b/lib/support/devname.c
index
8c2349a
..
e0306dd
100644
(file)
--- 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: