projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f91a79f
)
drivers/hwmon/w83791d.c: fix unused var warning
author
Michael Borisov
<
[email protected]
>
Fri, 15 Aug 2008 07:40:32 +0000
(
00:40
-0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 15 Aug 2008 15:35:43 +0000
(08:35 -0700)
drivers/hwmon/w83791d.c: In function `w83791d_probe':
drivers/hwmon/w83791d.c:1049: warning: unused variable `val1'
Signed-off-by: Michael Borisov <
[email protected]
>
Cc: "Mark M. Hoffman" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/hwmon/w83791d.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/w83791d.c
b/drivers/hwmon/w83791d.c
index daa7d121483bdd042c4396ec62e903e6a9b46cb8..de21142d106c10efbbd3af4858c0c9c140360606 100644
(file)
--- a/
drivers/hwmon/w83791d.c
+++ b/
drivers/hwmon/w83791d.c
@@
-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);