projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e19eea8
)
hwmon: (lm63) Avoid initializing the same field twice
author
Jean Delvare
<jdelvare@suse.de>
Fri, 4 Apr 2014 16:01:33 +0000
(18:01 +0200)
committer
Jean Delvare
<jdelvare@suse.de>
Fri, 4 Apr 2014 16:01:33 +0000
(18:01 +0200)
data is kzalloc'd, so data->valid is already 0.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm63.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/lm63.c
b/drivers/hwmon/lm63.c
index c5291645e5dcddc52ce4db5a01c9b1fd7b2a63cf..848b9611151f9507c21c74d2de94220ab475d2e8 100644
(file)
--- a/
drivers/hwmon/lm63.c
+++ b/
drivers/hwmon/lm63.c
@@
-1121,7
+1121,6
@@
static int lm63_probe(struct i2c_client *client,
return -ENOMEM;
data->client = client;
- data->valid = 0;
mutex_init(&data->update_lock);
/* Set the device type */