diff options
author | Ding Xiang <dingxiang@cmss.chinamobile.com> | 2019-07-31 10:53:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-31 17:44:00 +0200 |
commit | 7084148854e75090712439f73fbe2f4d6bfd96e1 (patch) | |
tree | 8655faaddd937b5e8cd3647d18411eb4b624bb79 /drivers/net/ethernet/myricom | |
parent | net: ag71xx: Slighly simplify code in 'ag71xx_rings_init()' (diff) | |
download | linux-7084148854e75090712439f73fbe2f4d6bfd96e1.tar.xz linux-7084148854e75090712439f73fbe2f4d6bfd96e1.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/myricom')
-rw-r--r-- | drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c index 99eaadba555f..61fe92719982 100644 --- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c +++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c @@ -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) { struct myri10ge_priv *mgp = netdev_priv(dev); - int error = 0; netdev_info(dev, "changing mtu from %d to %d\n", dev->mtu, new_mtu); if (mgp->running) { @@ -3049,7 +3048,7 @@ static int myri10ge_change_mtu(struct net_device *dev, int new_mtu) } else dev->mtu = new_mtu; - return error; + return 0; } /* |