summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDawei Li <set_pte_at@outlook.com>2022-12-13 16:46:52 +0100
committerJuergen Gross <jgross@suse.com>2022-12-15 16:06:10 +0100
commit7cffcade57a429667447c4f41d8414bbcf1b3aaa (patch)
tree003e2434311f399f97e152b626010447c1d02853 /net
parentxen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource() (diff)
downloadlinux-7cffcade57a429667447c4f41d8414bbcf1b3aaa.tar.xz
linux-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 <jgross@suse.com> Signed-off-by: Dawei Li <set_pte_at@outlook.com> Link: https://lore.kernel.org/r/TYCP286MB23238119AB4DF190997075C9CAE39@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'net')
-rw-r--r--net/9p/trans_xen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/9p/trans_xen.c b/net/9p/trans_xen.c
index aaa5fd364691..9950e1a5acb7 100644
--- a/net/9p/trans_xen.c
+++ b/net/9p/trans_xen.c
@@ -303,13 +303,12 @@ static void xen_9pfs_front_free(struct xen_9pfs_front_priv *priv)
kfree(priv);
}
-static int xen_9pfs_front_remove(struct xenbus_device *dev)
+static void xen_9pfs_front_remove(struct xenbus_device *dev)
{
struct xen_9pfs_front_priv *priv = dev_get_drvdata(&dev->dev);
dev_set_drvdata(&dev->dev, NULL);
xen_9pfs_front_free(priv);
- return 0;
}
static int xen_9pfs_front_alloc_dataring(struct xenbus_device *dev,