]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Fix uninitialized var warning
authorYueHaibing <yuehaibing@huawei.com>
Thu, 10 Nov 2022 13:47:07 +0000 (21:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:23:03 +0000 (11:23 +0100)
commit2884c7467bca6e29154ad04271171f189a81559b
tree8b9a7fd3a584b2eba4d773c915cea2ce840c74a9
parent10638af508a2d4ceab865373fcb49a22c62c6590
net/mlx5: DR, Fix uninitialized var warning

[ Upstream commit 52f7cf70eb8fac6111786c59ae9dfc5cf2bee710 ]

Smatch warns this:

drivers/net/ethernet/mellanox/mlx5/core/steering/dr_table.c:81
 mlx5dr_table_set_miss_action() error: uninitialized symbol 'ret'.

Initializing ret with -EOPNOTSUPP and fix missing action case.

Fixes: 3f39341f7839 ("net/mlx5: DR, Expose steering table functionality")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_table.c