Commit 9e444234 authored by Colin Ian King's avatar Colin Ian King Committed by Guenter Roeck

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: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200610123638.1133428-1-colin.king@canonical.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent ba47d845
...@@ -396,7 +396,7 @@ static int i5k_amb_hwmon_init(struct platform_device *pdev) ...@@ -396,7 +396,7 @@ static int i5k_amb_hwmon_init(struct platform_device *pdev)
static int i5k_amb_add(void) static int i5k_amb_add(void)
{ {
int res = -ENODEV; int res;
/* only ever going to be one of these */ /* only ever going to be one of these */
amb_pdev = platform_device_alloc(DRVNAME, 0); amb_pdev = platform_device_alloc(DRVNAME, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment