Re: [PATCH] hwmon: i5k_amb: remove redundant assignment to variable res

2020-06-10 Thread Guenter Roeck
On Wed, Jun 10, 2020 at 01:36:38PM +0100, Colin King wrote: > From: Colin Ian King > > 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 va

[PATCH] hwmon: i5k_amb: remove redundant assignment to variable res

2020-06-10 Thread Colin King
From: Colin Ian King 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 --- drivers/hwmon/i5k_amb.c | 2 +-