netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/phy: Remove return value for void function
@ 2014-04-22 19:21 Shruti Kanetkar
  2014-04-23 19:28 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Shruti Kanetkar @ 2014-04-22 19:21 UTC (permalink / raw)
  To: netdev; +Cc: f.fainelli, joe, Shruti Kanetkar

This was caught when using a spatch (aka. coccinelle) script
written by Joe Perches.

Cc: Joe Perches <joe@perches.com>
Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com>
---
 drivers/net/phy/at803x.c  | 3 +--
 drivers/net/phy/smsc.c    | 3 +--
 drivers/net/phy/vitesse.c | 3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c
index 643464d..07d8a11 100644
--- a/drivers/net/phy/at803x.c
+++ b/drivers/net/phy/at803x.c
@@ -283,8 +283,7 @@ static int __init atheros_init(void)
 
 static void __exit atheros_exit(void)
 {
-	return phy_drivers_unregister(at803x_driver,
-				      ARRAY_SIZE(at803x_driver));
+	phy_drivers_unregister(at803x_driver, ARRAY_SIZE(at803x_driver));
 }
 
 module_init(atheros_init);
diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c
index 11f3481..180c494 100644
--- a/drivers/net/phy/smsc.c
+++ b/drivers/net/phy/smsc.c
@@ -249,8 +249,7 @@ static int __init smsc_init(void)
 
 static void __exit smsc_exit(void)
 {
-	return phy_drivers_unregister(smsc_phy_driver,
-		ARRAY_SIZE(smsc_phy_driver));
+	phy_drivers_unregister(smsc_phy_driver, ARRAY_SIZE(smsc_phy_driver));
 }
 
 MODULE_DESCRIPTION("SMSC PHY driver");
diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c
index 14372c6..5dc0935d 100644
--- a/drivers/net/phy/vitesse.c
+++ b/drivers/net/phy/vitesse.c
@@ -319,8 +319,7 @@ static int __init vsc82xx_init(void)
 
 static void __exit vsc82xx_exit(void)
 {
-	return phy_drivers_unregister(vsc82xx_driver,
-		ARRAY_SIZE(vsc82xx_driver));
+	phy_drivers_unregister(vsc82xx_driver, ARRAY_SIZE(vsc82xx_driver));
 }
 
 module_init(vsc82xx_init);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/phy: Remove return value for void function
  2014-04-22 19:21 [PATCH] net/phy: Remove return value for void function Shruti Kanetkar
@ 2014-04-23 19:28 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-04-23 19:28 UTC (permalink / raw)
  To: Shruti; +Cc: netdev, f.fainelli, joe

From: Shruti Kanetkar <Shruti@Freescale.com>
Date: Tue, 22 Apr 2014 14:21:47 -0500

> This was caught when using a spatch (aka. coccinelle) script
> written by Joe Perches.
> 
> Cc: Joe Perches <joe@perches.com>
> Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com>

Applied to net-next, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-23 19:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 19:21 [PATCH] net/phy: Remove return value for void function Shruti Kanetkar
2014-04-23 19:28 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).