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

net: lan966x: fix a IS_ERR() vs NULL check in lan966x_create_targets()



The devm_ioremap() function does not return error pointers.  It returns
NULL.

Fixes: db8bcaad ("net: lan966x: add the basic lan966x driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f6882b8f
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