mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
iio: invensense: remove redundant initialization of variable period
The variable period is being initialized with a value that is never read, it is being re-assigned a new value later on before it is read. The initialization is redundant and can be removed. Cleans up clang scan build warning: Value stored to 'period' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> Link: https://lore.kernel.org/r/20240106153202.54861-1-colin.i.king@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
b2463c49ab
commit
b58b13f156
@ -126,7 +126,7 @@ void inv_sensors_timestamp_interrupt(struct inv_sensors_timestamp *ts,
|
||||
struct inv_sensors_timestamp_interval *it;
|
||||
int64_t delta, interval;
|
||||
const uint32_t fifo_mult = fifo_period / ts->chip.clock_period;
|
||||
uint32_t period = ts->period;
|
||||
uint32_t period;
|
||||
bool valid = false;
|
||||
|
||||
if (fifo_nb == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user