ar71xx: add missing return statement in ethernet mtu change op
authorFelix Fietkau <nbd@openwrt.org>
Mon, 12 Aug 2013 11:44:28 +0000 (11:44 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 12 Aug 2013 11:44:28 +0000 (11:44 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37756

target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c

index 5913bb6de452667228136fe92a1c094d7efdbf56..aa1fb9ef5bbe3268741871dbb30e6ad03a09abac 100644 (file)
@@ -1049,6 +1049,7 @@ static int ag71xx_change_mtu(struct net_device *dev, int new_mtu)
                return -EINVAL;
 
        dev->mtu = new_mtu;
+       return 0;
 }
 
 static const struct net_device_ops ag71xx_netdev_ops = {