staging: iio: ad2s1210: remove redundant assignment to variable negative
authorColin Ian King <colin.i.king@gmail.com>
Mon, 18 Apr 2022 13:46:03 +0000 (14:46 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 28 Apr 2022 18:22:56 +0000 (19:22 +0100)
commit0a9599e1fc489567639aa1b6717633bef589b9d4
tree2641059df1c0035d499c8d72a83e71083fbfcb5c
parent0ac507bbc77c87436b80c1fbd680f7c824bacef7
staging: iio: ad2s1210: remove redundant assignment to variable negative

Variable negative is being assigned a value that is never read, it is
being re-assigned later. The assignment is redundant and can be removed.

Cleans up clang scan build warning:
drivers/staging/iio/resolver/ad2s1210.c:502:3: warning: Value stored
to 'negative' is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220418134603.81336-1-colin.i.king@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1210.c