aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorAmit Cohen <amcohen@nvidia.com>2024-02-05 12:30:22 +0200
committerJakub Kicinski <kuba@kernel.org>2024-02-07 09:12:47 -0800
commitd160c66cda0ac8614adc53a5b5b0e6d6f1a05a5b (patch)
treef06fae6a472702fe4e93f4c8ed34094249bd0e8b /include/linux/netdevice.h
parentddb2d2a8e81474f61f2c6f0b9b3b4fb0d90677d0 (diff)
downloadlinux-d160c66cda0ac8614adc53a5b5b0e6d6f1a05a5b.tar.gz
net: Do not return value from init_dummy_netdev()
init_dummy_netdev() always returns zero and all the callers do not check the returned value. Set the function to not return value, as it is not really used today. Signed-off-by: Amit Cohen <amcohen@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20240205103022.440946-1-amcohen@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 118c40258d07b7..1845dd5043b44d 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -3198,7 +3198,7 @@ static inline void unregister_netdevice(struct net_device *dev)
int netdev_refcnt_read(const struct net_device *dev);
void free_netdev(struct net_device *dev);
void netdev_freemem(struct net_device *dev);
-int init_dummy_netdev(struct net_device *dev);
+void init_dummy_netdev(struct net_device *dev);
struct net_device *netdev_get_xmit_slave(struct net_device *dev,
struct sk_buff *skb,