projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bf3bab
)
hwmon: (lm95241) Avoid initializing the same field twice
author
Jean Delvare
<jdelvare@suse.de>
Wed, 12 Feb 2014 09:04:46 +0000
(10:04 +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 and data->model are already 0.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm95241.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/lm95241.c
b/drivers/hwmon/lm95241.c
index 7d5ce89908c23466a4e6721d5fa3e1c462291f35..cdf19adaec79b5a30c84d5ff824a085e028875d4 100644
(file)
--- a/
drivers/hwmon/lm95241.c
+++ b/
drivers/hwmon/lm95241.c
@@
-363,9
+363,7
@@
static void lm95241_init_client(struct i2c_client *client,
struct lm95241_data *data)
{
data->interval = HZ; /* 1 sec default */
- data->valid = 0;
data->config = CFG_CR0076;
- data->model = 0;
data->trutherm = (TT_OFF << TT1_SHIFT) | (TT_OFF << TT2_SHIFT);
i2c_smbus_write_byte_data(client, LM95241_REG_RW_CONFIG, data->config);