linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix warning in drivers/hwmon/w83791d.c
@ 2008-07-26  8:52 Michael Borisov
  0 siblings, 0 replies; only message in thread
From: Michael Borisov @ 2008-07-26  8:52 UTC (permalink / raw)
  To: kernel-janitors, linux-kernel

This patch fixes the following compile warning:

drivers/hwmon/w83791d.c: In function ‘w83791d_probe’:
drivers/hwmon/w83791d.c:1049: warning: unused variable ‘val1’

Signed-off-by: Michael Borisov <niro@tut.by>
---
diff --git a/drivers/hwmon/w83791d.c b/drivers/hwmon/w83791d.c
index e4e91c9..1e2dff3 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);



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-26  9:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-26  8:52 [PATCH] fix warning in drivers/hwmon/w83791d.c Michael Borisov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).