Skip to content

Commit 9e44423

Browse files
Colin Ian Kinggroeck
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent ba47d84 commit 9e44423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/i5k_amb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ static int i5k_amb_hwmon_init(struct platform_device *pdev)
396396

397397
static int i5k_amb_add(void)
398398
{
399-
int res = -ENODEV;
399+
int res;
400400

401401
/* only ever going to be one of these */
402402
amb_pdev = platform_device_alloc(DRVNAME, 0);

0 commit comments

Comments
 (0)