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>
This commit is contained in:
Colin Ian King 2020-06-10 13:36:38 +01:00 committed by Guenter Roeck
parent ba47d845d7
commit 9e444234b6
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ exit_remove:
static int i5k_amb_add(void)
{
int res = -ENODEV;
int res;
/* only ever going to be one of these */
amb_pdev = platform_device_alloc(DRVNAME, 0);