public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen@asianux•com>
To: isdn@linux-pingi•de, Jiri Slaby <jslaby@suse•cz>,
	'Jiri Kosina' <trivial@kernel•org>,
	tilman@imap•cc
Cc: David Miller <davem@davemloft•net>,
	"netdev@vger•kernel.org >> netdev" <netdev@vger•kernel.org>
Subject: [PATCH] drivers/isdn/divert: beautify code, delete useless 'break'
Date: Mon, 01 Apr 2013 09:52:20 +0800	[thread overview]
Message-ID: <5158E854.7060902@asianux.com> (raw)


  delete useless break statements.

Signed-off-by: Chen Gang <gang.chen@asianux•com>
---
 drivers/isdn/divert/isdn_divert.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/isdn/divert/isdn_divert.c b/drivers/isdn/divert/isdn_divert.c
index db432e6..76d505e 100644
--- a/drivers/isdn/divert/isdn_divert.c
+++ b/drivers/isdn/divert/isdn_divert.c
@@ -442,7 +442,6 @@ static int isdn_divert_icall(isdn_ctrl *ic)
 		switch (dv->rule.action) {
 		case DEFLECT_IGNORE:
 			return (0);
-			break;
 
 		case DEFLECT_ALERT:
 		case DEFLECT_PROCEED:
@@ -511,7 +510,6 @@ static int isdn_divert_icall(isdn_ctrl *ic)
 
 		default:
 			return (0); /* ignore call */
-			break;
 		} /* switch action */
 		break;
 	} /* scan_table */
-- 
1.7.7.6

             reply	other threads:[~2013-04-01  1:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01  1:52 Chen Gang [this message]
2013-04-01 14:04 ` [PATCH] drivers/isdn/divert: beautify code, delete useless 'break' Sergei Shtylyov
2013-04-02  0:44   ` Chen Gang
2013-04-02  1:37   ` [PATCH] ISDN:divert: beautify code: useless 'break', 'return (0)', additional comments Chen Gang
2013-04-02 18:31     ` 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=5158E854.7060902@asianux.com \
    --to=gang.chen@asianux$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=isdn@linux-pingi$(echo .)de \
    --cc=jslaby@suse$(echo .)cz \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=tilman@imap$(echo .)cc \
    --cc=trivial@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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