All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sami Kerola <kerolasa@iki.fi>
To: util-linux@vger.kernel.org
Cc: Sami Kerola <kerolasa@iki.fi>
Subject: [PATCH 08/13] libmount, look: remove dead code [oclint]
Date: Sun, 17 Jul 2016 14:00:10 +0100	[thread overview]
Message-ID: <20160717130015.31760-9-kerolasa@iki.fi> (raw)
In-Reply-To: <20160717130015.31760-1-kerolasa@iki.fi>

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
 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 7e5128b..91611ef 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 707665d..d003c5d 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 f0cc1d7..93c388e 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.9.0


  parent reply	other threads:[~2016-07-17 13:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-17 13:00 [PATCH 00/13] pull: OCLint static code analysis changes Sami Kerola
2016-07-17 13:00 ` [PATCH 01/13] misc: simplify if clauses [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 02/13] switch_root: simplify code and reduce indentation [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 03/13] libfdisk: collapse " Sami Kerola
2016-07-19  8:48   ` Karel Zak
2016-07-21 20:20     ` Sami Kerola
2016-07-17 13:00 ` [PATCH 04/13] lslogins: simplify if clause and move definition and comments [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 05/13] libblkid: simplify if clause [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 06/13] logger: " Sami Kerola
2016-07-17 13:00 ` [PATCH 07/13] syspriv: flip inverted logic [oclint] Sami Kerola
2016-07-17 13:00 ` Sami Kerola [this message]
2016-07-17 13:00 ` [PATCH 09/13] dmesg: drop core at impossible case in read_buffer() [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 10/13] misc: fix declarations shadowing variables in the global scope [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 11/13] setterm: " Sami Kerola
2016-07-17 13:00 ` [PATCH 12/13] agetty: move unreachable code to pre-processor #else segment [oclint] Sami Kerola
2016-07-17 13:00 ` [PATCH 13/13] libblkid: fix debugging macro [oclint] Sami Kerola
2016-08-02 13:44 ` [PATCH 00/13] pull: OCLint static code analysis changes Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160717130015.31760-9-kerolasa@iki.fi \
    --to=kerolasa@iki.fi \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.