Skip to content

Commit

Permalink
net/phy: Remove return value for void function
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Shruti Kanetkar authored and David S. Miller committed Apr 23, 2014
1 parent 8101a56 commit 2ebb158
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions drivers/net/phy/at803x.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,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);
Expand Down
3 changes: 1 addition & 2 deletions drivers/net/phy/smsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
3 changes: 1 addition & 2 deletions drivers/net/phy/vitesse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2ebb158

Please sign in to comment.