OSDN Git Service

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

Because the init function in the team_option structure always returns 0,
so change the init 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-4-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