myri10ge: remove unneeded variable
"error" is unneeded,just return 0 Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a9d41e7b8b
commit
7084148854
|
@ -3037,7 +3037,6 @@ static int myri10ge_set_mac_address(struct net_device *dev, void *addr)
|
||||||
static int myri10ge_change_mtu(struct net_device *dev, int new_mtu)
|
static int myri10ge_change_mtu(struct net_device *dev, int new_mtu)
|
||||||
{
|
{
|
||||||
struct myri10ge_priv *mgp = netdev_priv(dev);
|
struct myri10ge_priv *mgp = netdev_priv(dev);
|
||||||
int error = 0;
|
|
||||||
|
|
||||||
netdev_info(dev, "changing mtu from %d to %d\n", dev->mtu, new_mtu);
|
netdev_info(dev, "changing mtu from %d to %d\n", dev->mtu, new_mtu);
|
||||||
if (mgp->running) {
|
if (mgp->running) {
|
||||||
|
@ -3049,7 +3048,7 @@ static int myri10ge_change_mtu(struct net_device *dev, int new_mtu)
|
||||||
} else
|
} else
|
||||||
dev->mtu = new_mtu;
|
dev->mtu = new_mtu;
|
||||||
|
|
||||||
return error;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue