amd-xgbe: Check xgbe_init() return code

[ Upstream commit 738f7f6473 ]

The xgbe_init() routine returns a return code indicating success or
failure, but the return code is not checked. Add code to xgbe_init()
to issue a message when failures are seen and add code to check the
xgbe_init() return code.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Lendacky, Thomas 2017-01-20 12:14:13 -06:00 • committed by Greg Kroah-Hartman
commit c6f284899e
2 changed files with 6 additions and 2 deletions