net/mlx5: DR, Fix uninitialized var warning
authorYueHaibing <yuehaibing@huawei.com>
Thu, 10 Nov 2022 13:47:07 +0000 (21:47 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Nov 2022 08:03:20 +0000 (00:03 -0800)
commit52f7cf70eb8fac6111786c59ae9dfc5cf2bee710
treecae5da64a0965937df57509888e7c5f880715866
parentcd07eadd5147ffdae11b6fd28b77a3872f2a2484
net/mlx5: DR, Fix uninitialized var warning

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: 7838e1725394 ("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>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_table.c