]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net/mlx5: fix missing assignment of variable err
authorColin Ian King <colin.king@canonical.com>
Wed, 4 Sep 2019 19:29:14 +0000 (20:29 +0100)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 5 Sep 2019 21:44:41 +0000 (14:44 -0700)
commite53e665558eea32e76585c3d3a5786e7298045ad
tree4f7acb2957f2bcd0164b12758c675e49ac769f4f
parent4938c3d84541e43757473c14efcc4253571f6cc6
net/mlx5: fix missing assignment of variable err

The error return from a call to mlx5_flow_namespace_set_peer is not
being assigned to variable err and hence the error check following
the call is currently not working.  Fix this by assigning ret as
intended.

Addresses-Coverity: ("Logically dead code")
Fixes: 8463daf17e80 ("net/mlx5: Add support to use SMFS in switchdev mode")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c