diff options
author | Sami Kerola | 2016-07-03 21:13:42 +0200 |
---|---|---|
committer | Sami Kerola | 2016-07-21 22:14:33 +0200 |
commit | 445e9ca2d408b9936f101272b8f4cf87fb37609e (patch) | |
tree | a1a8aa333e202a95de6da791dfc9b2c446807041 | |
parent | syspriv: flip inverted logic [oclint] (diff) | |
download | kernel-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>
-rw-r--r-- | libmount/src/context_mount.c | 1 | ||||
-rw-r--r-- | libmount/src/context_umount.c | 1 | ||||
-rw-r--r-- | misc-utils/look.c | 2 |
3 files changed, 0 insertions, 4 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 7e5128b79..91611efcd 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -566,7 +566,6 @@ int mnt_context_mount_setopt(struct libmnt_context *cxt, int c, char *arg) break; default: return 1; - break; } return rc; diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index 707665db4..d003c5def 100644 --- a/libmount/src/context_umount.c +++ b/libmount/src/context_umount.c @@ -620,7 +620,6 @@ int mnt_context_umount_setopt(struct libmnt_context *cxt, int c, char *arg) break; default: return 1; - break; } return rc; 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; } |