Commit 7768aa76 authored by Jean Delvare's avatar Jean Delvare Committed by Mark M. Hoffman

hwmon: (w83781d) Add missing curly braces

Missing curly braces cause an if statement to be evaluated when it
shouldn't. It happens to be harmless, but that's still worth fixing.
Thanks to Riku Voipio for reporting.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Acked-By: default avatarRiku Voipio <riku.voipio@movial.fi>
Signed-off-by: default avatarMark M. Hoffman <mhoffman@lightlink.com>
parent dcbd9f68
...@@ -1122,12 +1122,13 @@ w83781d_create_files(struct device *dev, int kind, int is_isa) ...@@ -1122,12 +1122,13 @@ w83781d_create_files(struct device *dev, int kind, int is_isa)
&sensor_dev_attr_temp3_beep.dev_attr))) &sensor_dev_attr_temp3_beep.dev_attr)))
return err; return err;
if (kind != w83781d) if (kind != w83781d) {
err = sysfs_chmod_file(&dev->kobj, err = sysfs_chmod_file(&dev->kobj,
&sensor_dev_attr_temp3_alarm.dev_attr.attr, &sensor_dev_attr_temp3_alarm.dev_attr.attr,
S_IRUGO | S_IWUSR); S_IRUGO | S_IWUSR);
if (err) if (err)
return err; return err;
}
} }
if (kind != w83781d && kind != as99127f) { if (kind != w83781d && kind != as99127f) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment