team: change the getter function in the team_option structure to void
authorZhengchao Shao <shaozhengchao@huawei.com>
Mon, 7 Aug 2023 01:25:55 +0000 (09:25 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Aug 2023 22:04:05 +0000 (15:04 -0700)
commitc3b41f4c7b7ce573f379c0053e3c86e722562659
tree593532b13d2fba0147b558f553fab0f7f4997199
parentde3ecc4fd8bf201c5cd02dc49687fb1506cebb45
team: change the getter function in the team_option structure to void

Because the getter function in the team_option structure always returns 0,
so change the getter function to void and remove redundant code.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230807012556.3146071-5-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/team/team.c
drivers/net/team/team_mode_activebackup.c
drivers/net/team/team_mode_loadbalance.c
include/linux/if_team.h