Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16a515fd authored by Michael Borisov's avatar Michael Borisov Committed by Linus Torvalds
Browse files

drivers/hwmon/w83791d.c: fix unused var warning



drivers/hwmon/w83791d.c: In function `w83791d_probe':
drivers/hwmon/w83791d.c:1049: warning: unused variable `val1'

Signed-off-by: default avatarMichael Borisov <niro@tut.by>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f91a79fe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1055,9 +1055,10 @@ static int w83791d_probe(struct i2c_client *client,
{
	struct w83791d_data *data;
	struct device *dev = &client->dev;
	int i, val1, err;
	int i, err;

#ifdef DEBUG
	int val1;
	val1 = w83791d_read(client, W83791D_REG_DID_VID4);
	dev_dbg(dev, "Device ID version: %d.%d (0x%02x)\n",
			(val1 >> 5) & 0x07, (val1 >> 1) & 0x0f, val1);