summaryrefslogtreecommitdiffstats
path: root/misc-utils/look.c
diff options
context:
space:
mode:
authorSami Kerola2016-07-03 21:13:42 +0200
committerSami Kerola2016-07-21 22:14:33 +0200
commit445e9ca2d408b9936f101272b8f4cf87fb37609e (patch)
treea1a8aa333e202a95de6da791dfc9b2c446807041 /misc-utils/look.c
parentsyspriv: flip inverted logic [oclint] (diff)
downloadkernel-qcow2-util-linux-445e9ca2d408b9936f101272b8f4cf87fb37609e.tar.gz
kernel-qcow2-util-linux-445e9ca2d408b9936f101272b8f4cf87fb37609e.tar.xz
kernel-qcow2-util-linux-445e9ca2d408b9936f101272b8f4cf87fb37609e.zip
libmount, look: remove dead code [oclint]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/look.c')
-rw-r--r--misc-utils/look.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/misc-utils/look.c b/misc-utils/look.c
index f0cc1d7f1..93c388e6a 100644
--- a/misc-utils/look.c
+++ b/misc-utils/look.c
@@ -274,10 +274,8 @@ linear_search(char *front, char *back)
switch (compare(front, back)) {
case EQUAL: /* Found it. */
return (front);
- break;
case LESS: /* No such string. */
return (NULL);
- break;
case GREATER: /* Keep going. */
break;
}