summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-08-18 14:49:25 +0100
committerDavid S. Miller <davem@davemloft.net>2017-08-18 16:28:40 -0700
commit1547f538c14581346c2eb82f8af0071ee6ec2b30 (patch)
tree4230c146ca6ec412470ca2bae3b163fff97f1d80 /arch
parent16a4362573782115096799aebd9862f8bb140169 (diff)
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: eeb66cdb6826 ("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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions