summaryrefslogtreecommitdiff
path: root/drivers/net/e1000.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2016-11-16 00:50:07 +0000
committerTom Rini <trini@konsulko.com>2016-12-04 13:55:01 -0500
commit063bb708b59c882dcd7ec08a370c0e5773b3c772 (patch)
tree1fcb795af6b97b6eee93c47d9cf2302ce289dc30 /drivers/net/e1000.c
parent58eab3287b0ea8e135617d2fb10e09d178d32c89 (diff)
net: e1000: fix indentation
Apparently the indentation is off here, for the IGB model just want to bail out early. Fix this to avoid both compiler warnings and puzzled readers. Pointed out by GCC 6.2's -Wmisleading-indentation warning. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/e1000.c')
-rw-r--r--drivers/net/e1000.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 3332ad95d4..875682b1b8 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -1522,11 +1522,10 @@ e1000_initialize_hardware_bits(struct e1000_hw *hw)
reg_txdctl1 |= E1000_TXDCTL_COUNT_DESC;
E1000_WRITE_REG(hw, TXDCTL1, reg_txdctl1);
- /* IGB is cool */
- if (hw->mac_type == e1000_igb)
- return;
switch (hw->mac_type) {
+ case e1000_igb: /* IGB is cool */
+ return;
case e1000_82571:
case e1000_82572:
/* Clear PHY TX compatible mode bits */