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)
commit60dce04b81424940a3183c8e7e81e1234a27e906
treef164d01ba96152d50105e887e8ff81ae1070e275
parentb40296fc73f58f98b595164d52d9bfe99216efa6
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: 712c31853440 ("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