Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: ethernet: broadcom: bcm63xx_enet: Drop empty platform remove function

A remove callback just returning 0 is equivalent to no remove callback
at all. So drop the useless function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Uwe Kleine-König and committed by
David S. Miller
6b57bffa 0798311c

-6
-6
drivers/net/ethernet/broadcom/bcm63xx_enet.c
··· 2784 2784 return 0; 2785 2785 } 2786 2786 2787 - static int bcm_enet_shared_remove(struct platform_device *pdev) 2788 - { 2789 - return 0; 2790 - } 2791 - 2792 2787 /* this "shared" driver is needed because both macs share a single 2793 2788 * address space 2794 2789 */ 2795 2790 struct platform_driver bcm63xx_enet_shared_driver = { 2796 2791 .probe = bcm_enet_shared_probe, 2797 - .remove = bcm_enet_shared_remove, 2798 2792 .driver = { 2799 2793 .name = "bcm63xx_enet_shared", 2800 2794 .owner = THIS_MODULE,