aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2023-01-30 20:06:33 +0800
committerGreg Kroah-Hartman <[email protected]>2023-01-31 10:39:03 +0100
commit21ef9c91f0ab4f11d31fddbdc6d886fed114be74 (patch)
tree8b12c93b3aaa219ed87f392c8213851aa20e3064 /tools/perf/scripts/python
parent8cb9c36b812591e36405708d0ee693b1c135fcbd (diff)
usb: fotg210: fix return value check in fotg210_probe()
devm_platform_get_and_ioremap_resource() never returns NULL pointer, it will return ERR_PTR() when it fails, so replace the check with IS_ERR(). Fixes: baef5330d35b ("usb: fotg210: Acquire memory resource in core") Signed-off-by: Yang Yingliang <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions