Skip to content
Commit f6c1fb0a authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

net: ethernet: dwmac: Fix an error code in imx_dwmac_probe()

The code is return PTR_ERR(NULL) which is zero or success.  We should
return -ENOMEM instead.

Fixes: 94abdad6

 ("net: ethernet: dwmac: add ethernet glue logic for NXP imx8 chip")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarFugang Duan <fugang.duan@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c7e261d8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment