From 445e9ca2d408b9936f101272b8f4cf87fb37609e Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 3 Jul 2016 20:13:42 +0100 Subject: [PATCH] libmount, look: remove dead code [oclint] Signed-off-by: Sami Kerola --- libmount/src/context_mount.c | 1 - libmount/src/context_umount.c | 1 - misc-utils/look.c | 2 -- 3 files changed, 4 deletions(-) diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 7e5128b79a..91611efcdf 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 707665db4a..d003c5def3 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 f0cc1d7f19..93c388e6a9 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; } -- 2.47.2