Skip to content

Commit 287ecef

Browse files
Chen Gangdavem330
authored andcommitted
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>
1 parent e0664d3 commit 287ecef

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/isdn/divert/isdn_divert.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,7 @@ static int isdn_divert_icall(isdn_ctrl *ic)
441441

442442
switch (dv->rule.action) {
443443
case DEFLECT_IGNORE:
444-
return (0);
445-
break;
444+
return 0;
446445

447446
case DEFLECT_ALERT:
448447
case DEFLECT_PROCEED:
@@ -510,10 +509,9 @@ static int isdn_divert_icall(isdn_ctrl *ic)
510509
break;
511510

512511
default:
513-
return (0); /* ignore call */
514-
break;
512+
return 0; /* ignore call */
515513
} /* switch action */
516-
break;
514+
break; /* will break the 'for' looping */
517515
} /* scan_table */
518516

519517
if (cs) {

0 commit comments

Comments
 (0)