Skip to content

Commit

Permalink
net: cpsw: fix misplaced break statements.
Browse files Browse the repository at this point in the history
Having the breaks too far to the left makes parsing the dense switch/case
block unnecessarily harder.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Richard Cochran authored and David S. Miller committed May 25, 2015
1 parent d1a0ed7 commit 26fe7eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/ti/cpsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ static void cpsw_hwtstamp_v2(struct cpsw_priv *priv)

if (priv->cpts->rx_enable)
ctrl |= CTRL_V2_RX_TS_BITS;
break;
break;
case CPSW_VERSION_3:
default:
ctrl &= ~CTRL_V3_ALL_TS_MASK;
Expand All @@ -1466,7 +1466,7 @@ static void cpsw_hwtstamp_v2(struct cpsw_priv *priv)

if (priv->cpts->rx_enable)
ctrl |= CTRL_V3_RX_TS_BITS;
break;
break;
}

mtype = (30 << TS_SEQ_ID_OFFSET_SHIFT) | EVENT_MSG_BITS;
Expand Down

0 comments on commit 26fe7eb

Please sign in to comment.