stmmac: dwmac-socfpga: fix wrong pointer passed to PTR_ERR()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:00:09 +0000 (11:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jul 2016 18:07:38 +0000 (11:07 -0700)
commit2b8fb41844ec9d6a437b0009f777039d845b1b04
treebb9fa92d71a6d9e2071733cff5428b05e5b17aca
parent178cd55f086629cf0bad9c66c793a7e2bcc3abb6
stmmac: dwmac-socfpga: fix wrong pointer passed to PTR_ERR()

PTR_ERR should access the value just tested by IS_ERR, otherwise
the wrong error code will be returned.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c