net: Do not return value from init_dummy_netdev()
authorAmit Cohen <amcohen@nvidia.com>
Mon, 5 Feb 2024 10:30:22 +0000 (12:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 Feb 2024 17:12:47 +0000 (09:12 -0800)
commitd160c66cda0ac8614adc53a5b5b0e6d6f1a05a5b
treef06fae6a472702fe4e93f4c8ed34094249bd0e8b
parentddb2d2a8e81474f61f2c6f0b9b3b4fb0d90677d0
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>
include/linux/netdevice.h
net/core/dev.c