* [PATCH 1/1] forcedeth: Remove return from a void function
@ 2017-02-23 8:22 Zhu Yanjun
2017-02-23 15:55 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Zhu Yanjun @ 2017-02-23 8:22 UTC (permalink / raw)
To: davem, netdev
In a void function, it is not necessary to append a return statement in it.
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
---
drivers/net/ethernet/nvidia/forcedeth.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/nvidia/forcedeth.c b/drivers/net/ethernet/nvidia/forcedeth.c
index 3913f07..a992595 100644
--- a/drivers/net/ethernet/nvidia/forcedeth.c
+++ b/drivers/net/ethernet/nvidia/forcedeth.c
@@ -3274,8 +3274,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;
}
/**
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] forcedeth: Remove return from a void function
2017-02-23 8:22 [PATCH 1/1] forcedeth: Remove return from a void function Zhu Yanjun
@ 2017-02-23 15:55 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-02-23 15:55 UTC (permalink / raw)
To: yanjun.zhu; +Cc: netdev
From: Zhu Yanjun <yanjun.zhu@oracle.com>
Date: Thu, 23 Feb 2017 03:22:49 -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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-23 15:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23 8:22 [PATCH 1/1] forcedeth: Remove return from a void function Zhu Yanjun
2017-02-23 15:55 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.