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>
This commit is contained in:
Chen Gang 2013-04-02 09:37:56 +08:00 committed by David S. Miller
parent e0664d3da8
commit 287ecefb4b

View File

@ -441,8 +441,7 @@ static int isdn_divert_icall(isdn_ctrl *ic)
switch (dv->rule.action) { switch (dv->rule.action) {
case DEFLECT_IGNORE: case DEFLECT_IGNORE:
return (0); return 0;
break;
case DEFLECT_ALERT: case DEFLECT_ALERT:
case DEFLECT_PROCEED: case DEFLECT_PROCEED:
@ -510,10 +509,9 @@ static int isdn_divert_icall(isdn_ctrl *ic)
break; break;
default: default:
return (0); /* ignore call */ return 0; /* ignore call */
break;
} /* switch action */ } /* switch action */
break; break; /* will break the 'for' looping */
} /* scan_table */ } /* scan_table */
if (cs) { if (cs) {