diff options
| author | Dawei Li <[email protected]> | 2022-12-13 15:46:52 +0000 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2022-12-15 15:06:10 +0000 |
| commit | 7cffcade57a429667447c4f41d8414bbcf1b3aaa (patch) | |
| tree | 003e2434311f399f97e152b626010447c1d02853 /drivers/net/xen-netfront.c | |
| parent | xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource() (diff) | |
| download | kernel-7cffcade57a429667447c4f41d8414bbcf1b3aaa.tar.gz kernel-7cffcade57a429667447c4f41d8414bbcf1b3aaa.zip | |
xen: make remove callback of xen driver void returned
Since commit fc7a6209d571 ("bus: Make remove callback return void")
forces bus_type::remove be void-returned, it doesn't make much sense for
any bus based driver implementing remove callbalk to return non-void to
its caller.
This change is for xen bus based drivers.
Acked-by: Juergen Gross <[email protected]>
Signed-off-by: Dawei Li <[email protected]>
Link: https://lore.kernel.org/r/TYCP286MB23238119AB4DF190997075C9CAE39@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'drivers/net/xen-netfront.c')
| -rw-r--r-- | drivers/net/xen-netfront.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 9af2b027c19c..bc17f5391b1a 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -2640,7 +2640,7 @@ static void xennet_bus_close(struct xenbus_device *dev) } while (!ret); } -static int xennet_remove(struct xenbus_device *dev) +static void xennet_remove(struct xenbus_device *dev) { struct netfront_info *info = dev_get_drvdata(&dev->dev); @@ -2656,8 +2656,6 @@ static int xennet_remove(struct xenbus_device *dev) rtnl_unlock(); } xennet_free_netdev(info->netdev); - - return 0; } static const struct xenbus_device_id netfront_ids[] = { |
