summaryrefslogtreecommitdiffstats
path: root/include/linux/if_team.h
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2023-08-07 09:25:54 +0800
committerJakub Kicinski <kuba@kernel.org>2023-08-08 15:04:04 -0700
commitde3ecc4fd8bf201c5cd02dc49687fb1506cebb45 (patch)
tree8f0a80992d3f57f8d9e707e967ad720501df74f8 /include/linux/if_team.h
parentadac119421c30666623c4849bd93731992a0f123 (diff)
downloadlinux-de3ecc4fd8bf201c5cd02dc49687fb1506cebb45.tar.gz
linux-de3ecc4fd8bf201c5cd02dc49687fb1506cebb45.tar.bz2
linux-de3ecc4fd8bf201c5cd02dc49687fb1506cebb45.zip
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>
Diffstat (limited to 'include/linux/if_team.h')
-rw-r--r--include/linux/if_team.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/if_team.h b/include/linux/if_team.h
index 8de6b6e67829..fc01c3cfe86d 100644
--- a/include/linux/if_team.h
+++ b/include/linux/if_team.h
@@ -162,7 +162,7 @@ struct team_option {
bool per_port;
unsigned int array_size; /* != 0 means the option is array */
enum team_option_type type;
- int (*init)(struct team *team, struct team_option_inst_info *info);
+ void (*init)(struct team *team, struct team_option_inst_info *info);
int (*getter)(struct team *team, struct team_gsetter_ctx *ctx);
int (*setter)(struct team *team, struct team_gsetter_ctx *ctx);
};