summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/divert
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-04-02 09:37:56 +0800
committerDavid S. Miller <davem@davemloft.net>2013-04-02 14:31:24 -0400
commit287ecefb4bbea962b5646ef496c7a32a86d30b60 (patch)
tree41f7c5d96f5fb06fdfbb86088f53778e1124cb1f /drivers/isdn/divert
parente0664d3da83825539240bf486f1f75fb8a3be037 (diff)
downloadop-kernel-dev-287ecefb4bbea962b5646ef496c7a32a86d30b60.zip
op-kernel-dev-287ecefb4bbea962b5646ef496c7a32a86d30b60.tar.gz
ISDN:divert: beautify code: useless 'break', 'return (0)', additional comments.
delete useless 'break' after 'return'. let 'return 0' instead of 'return (0)' also give a comment for 'break' to let readers notice it. Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/divert')
-rw-r--r--drivers/isdn/divert/isdn_divert.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/isdn/divert/isdn_divert.c b/drivers/isdn/divert/isdn_divert.c
index db432e6..50749a7 100644
--- a/drivers/isdn/divert/isdn_divert.c
+++ b/drivers/isdn/divert/isdn_divert.c
@@ -441,8 +441,7 @@ static int isdn_divert_icall(isdn_ctrl *ic)
switch (dv->rule.action) {
case DEFLECT_IGNORE:
- return (0);
- break;
+ return 0;
case DEFLECT_ALERT:
case DEFLECT_PROCEED:
@@ -510,10 +509,9 @@ static int isdn_divert_icall(isdn_ctrl *ic)
break;
default:
- return (0); /* ignore call */
- break;
+ return 0; /* ignore call */
} /* switch action */
- break;
+ break; /* will break the 'for' looping */
} /* scan_table */
if (cs) {
OpenPOWER on IntegriCloud