aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-07-21 15:12:00 +0800
committerGreg Kroah-Hartman <[email protected]>2022-07-27 14:27:53 +0200
commit5cda657679f8fcb2896e4ac0aa8e231f12f9fb04 (patch)
treec01857d70480be01d0c40de8477648ce0b0e1cfc /net/unix/af_unix.c
parent67fb0cc02f89049e532b008faa35818c82aa0d62 (diff)
usb: typec: anx7411: Fix return value check in anx7411_register_i2c_dummy_clients()
If i2c_new_dummy_device() fails, it never return NULL pointer, replace NULL test with IS_ERR() to fix it. Fixes: fe6d8a9c8e64 ("usb: typec: anx7411: Add Analogix PD ANX7411 support") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions