Skip to content

Commit 2ebb158

Browse files
Shruti Kanetkardavem330
authored andcommitted
net/phy: Remove return value for void function
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>
1 parent 8101a56 commit 2ebb158

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎drivers/net/phy/at803x.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@ static int __init atheros_init(void)
253253

254254
static void __exit atheros_exit(void)
255255
{
256-
return phy_drivers_unregister(at803x_driver,
257-
ARRAY_SIZE(at803x_driver));
256+
phy_drivers_unregister(at803x_driver, ARRAY_SIZE(at803x_driver));
258257
}
259258

260259
module_init(atheros_init);

‎drivers/net/phy/smsc.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,7 @@ static int __init smsc_init(void)
249249

250250
static void __exit smsc_exit(void)
251251
{
252-
return phy_drivers_unregister(smsc_phy_driver,
253-
ARRAY_SIZE(smsc_phy_driver));
252+
phy_drivers_unregister(smsc_phy_driver, ARRAY_SIZE(smsc_phy_driver));
254253
}
255254

256255
MODULE_DESCRIPTION("SMSC PHY driver");

‎drivers/net/phy/vitesse.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ static int __init vsc82xx_init(void)
319319

320320
static void __exit vsc82xx_exit(void)
321321
{
322-
return phy_drivers_unregister(vsc82xx_driver,
323-
ARRAY_SIZE(vsc82xx_driver));
322+
phy_drivers_unregister(vsc82xx_driver, ARRAY_SIZE(vsc82xx_driver));
324323
}
325324

326325
module_init(vsc82xx_init);

0 commit comments

Comments
 (0)