Skip to content

Commit

Permalink
ISDN:divert: beautify code: useless 'break', 'return (0)', additional…
Browse files Browse the repository at this point in the history
… 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 <[email protected]>
Signed-off-by: Sergei Shtylyov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Chen Gang authored and davem330 committed Apr 2, 2013
1 parent e0664d3 commit 287ecef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/isdn/divert/isdn_divert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 287ecef

Please sign in to comment.