aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2022-05-01 21:50:29 +0200
committerJonathan Cameron <[email protected]>2022-05-07 15:34:19 +0100
commitbb52d3691db8cf24cea049235223f3599778f264 (patch)
tree52ddac612e9216f21eaa5615a38bed50adc4ebff /drivers/usb/cdns3/cdns3-trace.c
parent048058399f19d43cf21de9f5d36cd8144337d004 (diff)
iio: magnetometer: yas530: Fix memchr_inv() misuse
The call to check if the calibration is all zeroes is doing it wrong: memchr_inv() returns NULL if the the calibration contains all zeroes, but the check is for != NULL. Fix it up. It's probably not an urgent fix because the inner check for BIT(7) in data[13] will save us. But fix it. Fixes: de8860b1ed47 ("iio: magnetometer: Add driver for Yamaha YAS530") Reported-by: Jakob Hauser <[email protected]> Cc: Andy Shevchenko <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions