diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-12-03 12:55:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-03 14:22:00 +0000 |
commit | bb14bfc7eb927b47717d82ba7ecc8345d9099cf4 (patch) | |
tree | 9cb9aca35f36151235760b34c34605fdc7f2422c /drivers/net/ethernet/qlogic | |
parent | f6882b8fac60f928fda51efc64274463806f956c (diff) | |
download | lwn-bb14bfc7eb927b47717d82ba7ecc8345d9099cf4.tar.gz lwn-bb14bfc7eb927b47717d82ba7ecc8345d9099cf4.zip |
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: db8bcaad5393 ("net: lan966x: add the basic lan966x driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
0 files changed, 0 insertions, 0 deletions