net/mlx5: Lag, Remove redundant bool allocation on the stack
authorRoi Dayan <roid@nvidia.com>
Thu, 1 Dec 2022 09:14:00 +0000 (11:14 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 4 Feb 2023 10:07:02 +0000 (02:07 -0800)
commitb399b066e27e82aa04e6281b7e12803063987c7f
tree6759b546fcab02d6f840aa9030d18e7c654d675a
parent9a49a64ea7edbe070d39d945f6fc99c41a011268
net/mlx5: Lag, Remove redundant bool allocation on the stack

There is no need to allocate the bool variable and can just return the value.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c