diff options
author | Dawei Li <set_pte_at@outlook.com> | 2023-01-05 15:51:23 +0100 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2023-01-17 14:41:27 +0100 |
commit | 96ec2939620c48a503d9c89865c0c230d6f955e4 (patch) | |
tree | 3106c661ed252f9a2ecd25d22b0e9fc50620b826 /drivers/uio | |
parent | Drivers: hv: Enable vmbus driver for nested root partition (diff) | |
download | linux-96ec2939620c48a503d9c89865c0c230d6f955e4.tar.xz linux-96ec2939620c48a503d9c89865c0c230d6f955e4.zip |
Drivers: hv: Make remove callback of hyperv 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.
As such, change the remove function for Hyper-V VMBus based
drivers to return void.
Signed-off-by: Dawei Li <set_pte_at@outlook.com>
Link: https://lore.kernel.org/r/TYCP286MB2323A93C55526E4DF239D3ACCAFA9@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/uio')
-rw-r--r-- | drivers/uio/uio_hv_generic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/uio/uio_hv_generic.c b/drivers/uio/uio_hv_generic.c index c08a6cfd119f..20d9762331bd 100644 --- a/drivers/uio/uio_hv_generic.c +++ b/drivers/uio/uio_hv_generic.c @@ -355,20 +355,19 @@ fail_free_ring: return ret; } -static int +static void hv_uio_remove(struct hv_device *dev) { struct hv_uio_private_data *pdata = hv_get_drvdata(dev); if (!pdata) - return 0; + return; sysfs_remove_bin_file(&dev->channel->kobj, &ring_buffer_bin_attr); uio_unregister_device(&pdata->info); hv_uio_cleanup(dev, pdata); vmbus_free_ring(dev->channel); - return 0; } static struct hv_driver hv_uio_drv = { |