ethtool: Don't check for NULL info in prepare_data callbacks
authorSimon Horman <horms@kernel.org>
Wed, 31 Jul 2024 09:15:28 +0000 (10:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Aug 2024 16:03:52 +0000 (09:03 -0700)
commit743ff02152bc46bb4a2f2a49ec891c87eba6ab5b
tree7ddcce35b195f1073cc8f037ce40882812584c9c
parentf9c141fc33393923451bdd190c67d9d4f5d2c67f
ethtool: Don't check for NULL info in prepare_data callbacks

Since commit f946270d05c2 ("ethtool: netlink: always pass genl_info to
.prepare_data") the info argument of prepare_data callbacks is never
NULL. Remove checks present in callback implementations.

Link: https://lore.kernel.org/netdev/20240703121237.3f8b9125@kernel.org/
Signed-off-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240731-prepare_data-null-check-v1-1-627f2320678f@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/linkinfo.c
net/ethtool/linkmodes.c
net/ethtool/strset.c