aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorXu Yang <[email protected]>2022-12-15 13:54:09 +0800
committerGreg Kroah-Hartman <[email protected]>2023-01-17 17:05:02 +0100
commitf96c0384047257365371a8ac217107c0371586f1 (patch)
treec14149c6393653589ab826d7c47223e04555936d /tools/testing/selftests/bpf/progs/test_autoload.c
parent74622f0a81d0c2bcfc39f9192b788124e8c7f0af (diff)
usb: chipidea: core: fix possible constant 0 if use IS_ERR(ci->role_switch)
After successfully probed, ci->role_switch would only be NULL or a valid pointer. IS_ERR(ci->role_switch) will always return 0. So no need to wrap it with IS_ERR, otherwise the logic is wrong. Fixes: e1b5d2bed67c ("usb: chipidea: core: handle usb role switch in a common way") cc: <[email protected]> Signed-off-by: Xu Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions