aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-04-01 21:37:56 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-02 14:31:24 -0400
commit287ecefb4bbea962b5646ef496c7a32a86d30b60 (patch)
tree41f7c5d96f5fb06fdfbb86088f53778e1124cb1f /drivers/isdn
parente0664d3da83825539240bf486f1f75fb8a3be037 (diff)
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')
-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 db432e635496..50749a70c5ca 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)
441 441
442 switch (dv->rule.action) { 442 switch (dv->rule.action) {
443 case DEFLECT_IGNORE: 443 case DEFLECT_IGNORE:
444 return (0); 444 return 0;
445 break;
446 445
447 case DEFLECT_ALERT: 446 case DEFLECT_ALERT:
448 case DEFLECT_PROCEED: 447 case DEFLECT_PROCEED:
@@ -510,10 +509,9 @@ static int isdn_divert_icall(isdn_ctrl *ic)
510 break; 509 break;
511 510
512 default: 511 default:
513 return (0); /* ignore call */ 512 return 0; /* ignore call */
514 break;
515 } /* switch action */ 513 } /* switch action */
516 break; 514 break; /* will break the 'for' looping */
517 } /* scan_table */ 515 } /* scan_table */
518 516
519 if (cs) { 517 if (cs) {