]> Git Repo - linux.git/commit
sunhme: fix an IS_ERR() vs NULL check in probe
authorDan Carpenter <[email protected]>
Wed, 12 Oct 2022 15:01:32 +0000 (18:01 +0300)
committerJakub Kicinski <[email protected]>
Thu, 13 Oct 2022 16:34:09 +0000 (09:34 -0700)
commit99df45c9e0a43b1b88dab294265e2be4a040a441
tree4ab421440624a5c50af6eefa505203010fa5411e
parent30e9672ac37f7b8b9e1379d25882798d8e76a96f
sunhme: fix an IS_ERR() vs NULL check in probe

The devm_request_region() function does not return error pointers, it
returns NULL on error.

Fixes: 914d9b2711dd ("sunhme: switch to devres")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Sean Anderson <[email protected]>
Reviewed-by: Rolf Eike Beer <[email protected]>
Link: https://lore.kernel.org/r/Y0bWzJL8JknX8MUf@kili
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/ethernet/sun/sunhme.c
This page took 0.054674 seconds and 4 git commands to generate.