Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7768aa76966f06c4add6ac2b0ef397ff34f3dab0 Commit: 7768aa76966f06c4add6ac2b0ef397ff34f3dab0 Parent: dcbd9f68aea41d22d5bd37468409da33151b4202 Author: Jean Delvare <[EMAIL PROTECTED]> AuthorDate: Thu Oct 25 13:11:01 2007 +0200 Committer: Mark M. Hoffman <[EMAIL PROTECTED]> CommitDate: Thu Nov 8 08:42:47 2007 -0500
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: Jean Delvare <[EMAIL PROTECTED]> Acked-By: Riku Voipio <[EMAIL PROTECTED]> Signed-off-by: Mark M. Hoffman <[EMAIL PROTECTED]> --- drivers/hwmon/w83781d.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c index a6a1edf..e0fa752 100644 --- a/drivers/hwmon/w83781d.c +++ b/drivers/hwmon/w83781d.c @@ -1122,12 +1122,13 @@ w83781d_create_files(struct device *dev, int kind, int is_isa) &sensor_dev_attr_temp3_beep.dev_attr))) return err; - if (kind != w83781d) + if (kind != w83781d) { err = sysfs_chmod_file(&dev->kobj, &sensor_dev_attr_temp3_alarm.dev_attr.attr, S_IRUGO | S_IWUSR); if (err) return err; + } } if (kind != w83781d && kind != as99127f) { - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html