hwmon: (i5k_amb) remove redundant assignment to variable res
authorColin Ian King <colin.king@canonical.com>
Wed, 10 Jun 2020 12:36:38 +0000 (13:36 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 19 Jul 2020 23:25:20 +0000 (16:25 -0700)
commit9e444234b6d8de48e9032f47997773cd98d863a5
tree2a0f7e9a41648561ffb93d41693c097475f4c930
parentba47d845d715a010f7b51f6f89bae32845e6acb7
hwmon: (i5k_amb) remove redundant assignment to variable res

The variable res is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200610123638.1133428-1-colin.king@canonical.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/i5k_amb.c