]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2596ed72d6b2fd0c5a9c8944da819058ed2fa46
treea172a08f3e9022ee217277398b3dd70c73bfd66c
parent9f9737099a047fa4df9807075a704142fe3693d5
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: 60b1332f23f3 ("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