]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Fix error return code in nicvf_open()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 11 Jan 2017 16:32:51 +0000 (16:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jan 2017 21:12:01 +0000 (16:12 -0500)
commit8a6d7a0b4437df0001d30a010c8a8a697b05a862
treef164d01ba96152d50105e887e8ff81ae1070e275
parent90307df3c666334f3ac7bb9f7d6efd000de8a3d2
net: thunderx: Fix error return code in nicvf_open()

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

Fixes: f47d8007bb44 ("net: thunderx: Program LMAC credits based on MTU")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c