]> git.baikalelectronics.ru Git - kernel.git/commit
sunhme: fix an IS_ERR() vs NULL check in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Oct 2022 15:01:32 +0000 (18:01 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 13 Oct 2022 16:34:09 +0000 (09:34 -0700)
commitf5e09b6342c0f72409d6f4fbf41e44b82cd16228
tree4ab421440624a5c50af6eefa505203010fa5411e
parent1f18441ae6f37187783b7dda7090e29df3dabbcc
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: 53707b6e0fb8 ("sunhme: switch to devres")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Link: https://lore.kernel.org/r/Y0bWzJL8JknX8MUf@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sun/sunhme.c