Skip to contentSkip to conversation

fix warning in drivers/hwmon/w83791d.c

PATCH New Michael Borisov 1 participant 1 message Jul 26, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix warning in drivers/hwmon/w83791d.c

This patch fixes the following compile warning:

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

---

drivers/hwmon/w83791d.c +0 -0
index e4e91c9..1e2dff3 100644
@@ -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);