net: cpsw: fix misplaced break statements.
authorRichard Cochran <richardcochran@gmail.com>
Mon, 25 May 2015 09:02:13 +0000 (11:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 22:19:09 +0000 (18:19 -0400)
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>
drivers/net/ethernet/ti/cpsw.c

index b536b4c82752a233e7c18d4f5194041f6dc80e20..e9e3ab36bd7c4f097306ce063781ac51f18ca27b 100644 (file)
@@ -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;
@@ -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;