]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Fix error return code in xgbe_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 22 Oct 2016 14:35:30 +0000 (14:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Oct 2016 21:21:59 +0000 (17:21 -0400)
commitd074fbcf867bd3af1f2a34b760189e0aa952fd94
tree64ca41ec63cd9f327db24a8b38ef3c00637651ba
parent6f9e29a914a0d4c26afe77551023f95c13d99ea7
amd-xgbe: Fix error return code in xgbe_probe()

Fix to return error code -ENODEV from the DMA is not supported error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-main.c