[<prev] [next>] [day] [month] [year] [list]
Message-ID: <ea11fea30807190506v242518afs45f7afbe4f41604b@mail.gmail.com>
Date: Sat, 19 Jul 2008 17:36:23 +0530
From: "Manish Katiyar" <mkatiyar@...il.com>
To: LKML <linux-kernel@...r.kernel.org>, bezaur@...il.com
Subject: [PATCH] Fix 'unused variable val1' warning in drivers/hwmon/w83791d.c
Below patch fixes the following warning :
drivers/hwmon/w83791d.c:1049: warning: unused variable 'val1'
Signed-off-by: "Manish Katiyar" <mkatiyar@...il.com>
---
drivers/hwmon/w83791d.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/hwmon/w83791d.c b/drivers/hwmon/w83791d.c
index e4e91c9..0afecea 100644
--- a/drivers/hwmon/w83791d.c
+++ b/drivers/hwmon/w83791d.c
@@ -1046,9 +1046,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);
--
1.5.4.3
Thanks -
Manish
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists