Files
android_kernel_xiaomi_sm8450/drivers/net
Colin Ian King 1547f538c1 mlx5: ensure 0 is returned when vport is zero
Currently, if vport is zero then then an uninialized return status
in err is returned.  Since the only return status at the end of the
function esw_add_uc_addr is zero for the current set of return paths
we may as well just return 0 rather than err to fix this issue.

Detected by CoverityScan, CID#1452698 ("Uninitialized scalar variable")

Fixes: eeb66cdb68 ("net/mlx5: Separate between E-Switch and MPFS")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-18 16:28:40 -07:00
..
2017-08-13 20:12:23 -07:00
2017-08-09 22:42:49 -07:00
2017-08-11 14:42:28 -07:00
2017-04-24 12:35:56 -04:00
2017-04-24 12:35:56 -04:00
2017-08-16 11:01:57 -07:00
2017-08-16 14:27:35 -07:00
2017-08-16 11:01:57 -07:00
2017-08-13 20:05:12 -07:00