From: Breno Leitao Date: Thu, 4 Feb 2010 10:11:18 +0000 (+0000) Subject: qlge: removing unreachable block of code X-Git-Tag: MMI-PSA29.97-13-9~24841^2~413 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0fee99fce97af37b1db6ed8dd6951fb9a8d7201;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Ron Mercer Signed-off-by: David S. Miller --- 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) QPRINTK(qdev, IFUP, ERR, "Changing to jumbo MTU.\n"); } else if (ndev->mtu == 9000 && new_mtu == 1500) { QPRINTK(qdev, IFUP, ERR, "Changing to normal MTU.\n"); - } else if ((ndev->mtu == 1500 && new_mtu == 1500) || - (ndev->mtu == 9000 && new_mtu == 9000)) { - return 0; } else return -EINVAL;