ixgbe: remove unnecessary break after return
authorFabian Frederick <fabf@skynet.be>
Sun, 20 Jul 2014 14:25:19 +0000 (16:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2014 04:30:17 +0000 (21:30 -0700)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c

index ea1c1ab926e29d43fb25fad0e59881c501a8b9bc..75bcb2e084910f2ccf27a9bfd2608a4523128f8b 100644 (file)
@@ -460,7 +460,6 @@ static int ixgbe_dcbnl_getnumtcs(struct net_device *netdev, int tcid, u8 *num)
                        break;
                default:
                        return -EINVAL;
-                       break;
                }
        } else {
                return -EINVAL;
index a452730a327864111d72d13679fc47c2be870b7c..94a1c07efeb0b8b6b1915084bdb7d52c0a5aaacb 100644 (file)
@@ -1408,7 +1408,6 @@ static int ixgbe_reg_test(struct ixgbe_adapter *adapter, u64 *data)
        default:
                *data = 1;
                return 1;
-               break;
        }
 
        /*
@@ -2866,7 +2865,6 @@ static int ixgbe_get_ts_info(struct net_device *dev,
                break;
        default:
                return ethtool_op_get_ts_info(dev, info);
-               break;
        }
        return 0;
 }