mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08:00
net: cpsw: fix misplaced break statements.
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>
This commit is contained in:
parent
d1a0ed795a
commit
26fe7eb862
@ -1456,7 +1456,7 @@ static void cpsw_hwtstamp_v2(struct cpsw_priv *priv)
|
|||||||
|
|
||||||
if (priv->cpts->rx_enable)
|
if (priv->cpts->rx_enable)
|
||||||
ctrl |= CTRL_V2_RX_TS_BITS;
|
ctrl |= CTRL_V2_RX_TS_BITS;
|
||||||
break;
|
break;
|
||||||
case CPSW_VERSION_3:
|
case CPSW_VERSION_3:
|
||||||
default:
|
default:
|
||||||
ctrl &= ~CTRL_V3_ALL_TS_MASK;
|
ctrl &= ~CTRL_V3_ALL_TS_MASK;
|
||||||
@ -1466,7 +1466,7 @@ static void cpsw_hwtstamp_v2(struct cpsw_priv *priv)
|
|||||||
|
|
||||||
if (priv->cpts->rx_enable)
|
if (priv->cpts->rx_enable)
|
||||||
ctrl |= CTRL_V3_RX_TS_BITS;
|
ctrl |= CTRL_V3_RX_TS_BITS;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
mtype = (30 << TS_SEQ_ID_OFFSET_SHIFT) | EVENT_MSG_BITS;
|
mtype = (30 << TS_SEQ_ID_OFFSET_SHIFT) | EVENT_MSG_BITS;
|
||||||
|
Loading…
Reference in New Issue
Block a user