amd-xgbe: Check xgbe_init() return code
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 20 Jan 2017 18:14:13 +0000 (12:14 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jan 2017 21:57:14 +0000 (16:57 -0500)
commit738f7f647371ff4cfc9646c99dba5b58ad142db3
tree1ae1371dc4273cb2ae058ee6eb6122fc05bd13e2
parent4eccbfc36186926b570310bfbd44f4216cd05c63
amd-xgbe: Check xgbe_init() return code

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>
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
drivers/net/ethernet/amd/xgbe/xgbe-drv.c