]> Git Repo - linux.git/commit
iio: imu: st_lsm6dsx: remove set but not used variables 'acc_sensor' and 'gyro_sensor'
authorYueHaibing <[email protected]>
Tue, 9 Apr 2019 02:12:17 +0000 (02:12 +0000)
committerJonathan Cameron <[email protected]>
Sun, 14 Apr 2019 12:39:30 +0000 (13:39 +0100)
commit631bd2f7ec02ad9e3d1fa31765971387e7792483
treeb3eadec13c8fa53abe435bd13c34ef00be4fabe2
parent63440a630d3b0cb6ab7c8507dc27a383fc82ed57
iio: imu: st_lsm6dsx: remove set but not used variables 'acc_sensor' and 'gyro_sensor'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c: In function 'st_lsm6dsx_read_tagged_fifo':
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c:520:41: warning:
 variable 'gyro_sensor' set but not used [-Wunused-but-set-variable]

drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c:520:28: warning:
 variable 'acc_sensor' set but not used [-Wunused-but-set-variable]

They are not used since commit 14c7c6e1a860 ("iio: imu: st_lsm6dsx: add
st_lsm6dsx_push_tagged_data routine")

Signed-off-by: YueHaibing <[email protected]>
Acked-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
This page took 0.047567 seconds and 4 git commands to generate.