From: Ding Xiang Date: Wed, 31 Jul 2019 08:53:46 +0000 (+0800) Subject: myri10ge: remove unneeded variable X-Git-Tag: v5.4-rc1~131^2~327 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7084148854e75090712439f73fbe2f4d6bfd96e1;p=platform%2Fkernel%2Flinux-rpi.git myri10ge: remove unneeded variable "error" is unneeded,just return 0 Signed-off-by: Ding Xiang Signed-off-by: David S. Miller --- 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; } /*