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:
a5589cf
)
hwmon: (lm95245) Avoid initializing the same field twice
author
Jean Delvare
<jdelvare@suse.de>
Wed, 12 Feb 2014 09:05:27 +0000
(10:05 +0100)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 3 Mar 2014 16:01:04 +0000
(08:01 -0800)
data is kzalloc'd, so data->valid is already 0.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm95245.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/lm95245.c
b/drivers/hwmon/lm95245.c
index a6c85f0ff8f3e5a9ebf099a8d251b95a7fe636d6..3f0956e18a23f18ba5350cd7c5cfbf90c6b46591 100644
(file)
--- a/
drivers/hwmon/lm95245.c
+++ b/
drivers/hwmon/lm95245.c
@@
-440,7
+440,6
@@
static void lm95245_init_client(struct i2c_client *client)
{
struct lm95245_data *data = i2c_get_clientdata(client);
- data->valid = 0;
data->interval = lm95245_read_conversion_rate(client);
data->config1 = i2c_smbus_read_byte_data(client,