]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: fix error return code in nfp_net_netdev_open()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 03:45:07 +0000 (03:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2016 08:27:05 +0000 (04:27 -0400)
commitf78bd1f85196787ae87a0c6a66c2a1671c427d89
treed1d49460c2af4cd54416efdddb917054f85918df
parent3cee006ba73d916daf6ae2d0b970aca2163e2ae0
nfp: fix error return code in nfp_net_netdev_open()

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

Fixes: 4858642b70e0 ("nfp: allocate ring SW structs dynamically")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c