netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fabian Frederick <fabf@skynet.be>
To: linux-kernel@vger.kernel.org
Cc: davem@davemloft.net, joe@perches.com,
	Fabian Frederick <fabf@skynet.be>,
	Steffen Klassert <steffen.klassert@secunet.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	netdev@vger.kernel.org
Subject: [PATCH 09/16] af_key: remove unnecessary break after return
Date: Mon, 14 Jul 2014 18:30:59 +0200	[thread overview]
Message-ID: <1405355467-7350-10-git-send-email-fabf@skynet.be> (raw)
In-Reply-To: <1405355467-7350-1-git-send-email-fabf@skynet.be>

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 net/key/af_key.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/net/key/af_key.c b/net/key/af_key.c
index ba2a2f9..1847ec4 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -405,7 +405,6 @@ static int verify_address_len(const void *p)
 		 * XXX When it can, remove this -EINVAL.  -DaveM
 		 */
 		return -EINVAL;
-		break;
 	}
 
 	return 0;
@@ -536,7 +535,6 @@ pfkey_satype2proto(uint8_t satype)
 		return IPPROTO_ESP;
 	case SADB_X_SATYPE_IPCOMP:
 		return IPPROTO_COMP;
-		break;
 	default:
 		return 0;
 	}
@@ -553,7 +551,6 @@ pfkey_proto2satype(uint16_t proto)
 		return SADB_SATYPE_ESP;
 	case IPPROTO_COMP:
 		return SADB_X_SATYPE_IPCOMP;
-		break;
 	default:
 		return 0;
 	}
-- 
1.8.4.5

  parent reply	other threads:[~2014-07-14 16:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14 16:30 [PATCH 00/16] net: remove unnecessary break after goto/return Fabian Frederick
2014-07-14 16:30 ` [PATCH 01/16] packet: remove unnecessary break after return Fabian Frederick
2014-07-14 16:30 ` [PATCH 02/16] tipc: " Fabian Frederick
2014-07-14 16:30 ` [PATCH 03/16] 9P: " Fabian Frederick
2014-07-14 16:30 ` [PATCH 04/16] af_iucv: remove unnecessary break after goto Fabian Frederick
2014-07-14 16:30 ` [PATCH 05/16] netlabel: " Fabian Frederick
2014-07-14 22:30   ` Paul Moore
2014-07-14 16:30 ` [PATCH 06/16] pktgen: " Fabian Frederick
2014-07-14 16:30 ` [PATCH 07/16] drop_monitor: remove unnecessary break after return Fabian Frederick
2014-07-14 16:30 ` [PATCH 08/16] mac80211: " Fabian Frederick
2014-07-14 16:30 ` Fabian Frederick [this message]
2014-07-15 23:27 ` [PATCH 00/16] net: remove unnecessary break after goto/return David Miller

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=1405355467-7350-10-git-send-email-fabf@skynet.be \
    --to=fabf@skynet.be \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=steffen.klassert@secunet.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).