diff options
author | Breno Leitao <leitao@linux.vnet.ibm.com> | 2010-02-04 05:11:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-04 18:42:27 -0500 |
commit | e0fee99fce97af37b1db6ed8dd6951fb9a8d7201 (patch) | |
tree | a5e931c7ddb286de3961d7491910d753f596ff36 /drivers/net | |
parent | d088dde7b19628f386c486f16cd471f5b5682ca8 (diff) |
qlge: removing unreachable block of code
Currently the qlge_change_mtu() is never called if the new_mtu is
equal current MTU, due this condition on dev_set_mtu():
if (new_mtu == dev->mtu)
return 0;
So, this block of code is never reached and is being removed.
Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 87a40d168b36..0c9e00f36cd9 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -4123,9 +4123,6 @@ static int qlge_change_mtu(struct net_device *ndev, int new_mtu) | |||
4123 | QPRINTK(qdev, IFUP, ERR, "Changing to jumbo MTU.\n"); | 4123 | QPRINTK(qdev, IFUP, ERR, "Changing to jumbo MTU.\n"); |
4124 | } else if (ndev->mtu == 9000 && new_mtu == 1500) { | 4124 | } else if (ndev->mtu == 9000 && new_mtu == 1500) { |
4125 | QPRINTK(qdev, IFUP, ERR, "Changing to normal MTU.\n"); | 4125 | QPRINTK(qdev, IFUP, ERR, "Changing to normal MTU.\n"); |
4126 | } else if ((ndev->mtu == 1500 && new_mtu == 1500) || | ||
4127 | (ndev->mtu == 9000 && new_mtu == 9000)) { | ||
4128 | return 0; | ||
4129 | } else | 4126 | } else |
4130 | return -EINVAL; | 4127 | return -EINVAL; |
4131 | 4128 | ||