diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-04-04 18:01:34 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2014-04-04 18:01:34 +0200 |
commit | 5b58157598f93089ccda90aabd98f27865b344da (patch) | |
tree | 2b933cd00cefacb4a45b6a64decd7b381ab4b54c /drivers/base/firmware_class.c | |
parent | hwmon: (lm80) Convert to use devm_hwmon_device_register_with_groups (diff) | |
download | linux-5b58157598f93089ccda90aabd98f27865b344da.tar.xz linux-5b58157598f93089ccda90aabd98f27865b344da.zip |
hwmon: (pc87360) Avoid initializing the same field twice
data is kzalloc'd, so data->valid, data->innr and data->tempnr are
already 0. Also rework the initialization path to only set name and
data->fannr once.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/base/firmware_class.c')
0 files changed, 0 insertions, 0 deletions