Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 287ecefb authored by Chen Gang's avatar Chen Gang Committed by David S. Miller
Browse files

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: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e0664d3d
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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) {