Skip to content
Commit 99df45c9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski
Browse files

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: 914d9b27 ("sunhme: switch to devres")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarSean Anderson <seanga2@gmail.com>
Reviewed-by: default avatarRolf Eike Beer <eike-kernel@sf-tec.de>
Link: https://lore.kernel.org/r/Y0bWzJL8JknX8MUf@kili


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 30e9672a
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