hwmon: (lm95245) Avoid initializing the same field twice
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>
This commit is contained in:
Родитель
a5589cf193
Коммит
f91d22fc3e
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче