diff options
author | Jialin Zhang <[email protected]> | 2022-03-17 14:58:51 +0800 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2022-03-24 20:10:32 +0100 |
commit | 283fb4ea08c5876150b4158e9c20c14309214ce2 (patch) | |
tree | ea8a1712dfe48653b4adffec8fb7045fcb2eeece /net/switchdev/switchdev.c | |
parent | ce2076ba209e5e5258b71c44065988d8f7fa2976 (diff) |
pinctrl: nuvoton: Fix return value check in wpcm450_gpio_register()
In case of error, the function devm_platform_ioremap_resource()
returns ERR_PTR() and never returns NULL. The NULL test in the
return value check should be replaced with IS_ERR().
Fixes: a1d1e0e3d80a ("pinctrl: nuvoton: Add driver for WPCM450")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Jialin Zhang <[email protected]>
Reviewed-by: Jonathan Neuschäfer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions