diff options
| author | Jonathan Cameron <[email protected]> | 2021-10-17 17:03:03 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-10-20 14:43:53 +0100 |
| commit | 1ea3615b6168eaaf07445c8d32a4c6bc965d9579 (patch) | |
| tree | 5784a21876d0ef6ed53d72701463ee6c86d2549f /lib/mpi/mpi-inline.h | |
| parent | dd4efd05c565529dad8722301d69e0c19a3292e9 (diff) | |
iio: accel: sca3000: Use sign_extend32() instead of opencoding sign extension.
Whilst nice to get rid of this non obvious code, this also clears a
static checker warning:
drivers/iio/accel/sca3000.c:734 sca3000_read_raw()
warn: no-op. '((*val) << 19) >> 19'
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Reviewed-by: Lars-Peter Clausen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions