mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 6 Nov 2017 11:11:28 +0000 (11:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 04:25:15 +0000 (13:25 +0900)
commitd86fd113ebbb37726ef7c7cc6fd6d5ce377455d6
treea172a08f3e9022ee217277398b3dd70c73bfd66c
parent29130853fe6dee04ad88d0586ff39182fa408a75
mlxsw: spectrum: Fix error return code in mlxsw_sp_port_create()

Fix to return a negative error code from the VID  create error handling
case instead of 0, as done elsewhere in this function.

Fixes: c57529e1d5d8 ("mlxsw: spectrum: Replace vPorts with Port-VLAN")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c