forcedeth: Remove return from a void function
authorZhu Yanjun <yanjun.zhu@oracle.com>
Thu, 23 Feb 2017 08:22:49 +0000 (03:22 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2017 15:55:07 +0000 (10:55 -0500)
In a void function, it is not necessary to append a return statement in it.

Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c

index 92367a06491a074e7e7557f5ddc15e506ffd8ab5..978d32944c8047bf4c4ab3d849d2acc39b8dfb5a 100644 (file)
@@ -3272,8 +3272,6 @@ static void nv_force_linkspeed(struct net_device *dev, int speed, int duplex)
        pci_push(base);
        writel(np->linkspeed, base + NvRegLinkSpeed);
        pci_push(base);
-
-       return;
 }
 
 /**