* [lm-sensors] [PATCH] hwmon: (w83781d) Add missing curly braces
@ 2007-10-25 11:11 Jean Delvare
2007-10-26 22:28 ` Voipio Riku
2007-10-28 17:41 ` Mark M. Hoffman
0 siblings, 2 replies; 3+ messages in thread
From: Jean Delvare @ 2007-10-25 11:11 UTC (permalink / raw)
To: lm-sensors
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 <khali@linux-fr.org>
---
drivers/hwmon/w83781d.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- linux-2.6.24-rc1.orig/drivers/hwmon/w83781d.c 2007-10-25 12:58:24.000000000 +0200
+++ linux-2.6.24-rc1/drivers/hwmon/w83781d.c 2007-10-25 13:06:00.000000000 +0200
@@ -1121,12 +1121,13 @@ w83781d_create_files(struct device *dev,
&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) {
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lm-sensors] [PATCH] hwmon: (w83781d) Add missing curly braces
2007-10-25 11:11 [lm-sensors] [PATCH] hwmon: (w83781d) Add missing curly braces Jean Delvare
@ 2007-10-26 22:28 ` Voipio Riku
2007-10-28 17:41 ` Mark M. Hoffman
1 sibling, 0 replies; 3+ messages in thread
From: Voipio Riku @ 2007-10-26 22:28 UTC (permalink / raw)
To: lm-sensors
> 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.
This is clearly the correct fix:
Acked-By: Riku Voipio <riku.voipio@movial.fi>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> ---
> drivers/hwmon/w83781d.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- linux-2.6.24-rc1.orig/drivers/hwmon/w83781d.c 2007-10-25
> 12:58:24.000000000 +0200
> +++ linux-2.6.24-rc1/drivers/hwmon/w83781d.c 2007-10-25 13:06:00.000000000
> +0200
> @@ -1121,12 +1121,13 @@ w83781d_create_files(struct device *dev,
> &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) {
>
>
> --
> Jean Delvare
>
> _______________________________________________
> lm-sensors mailing list
> lm-sensors@lm-sensors.org
> http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
>
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lm-sensors] [PATCH] hwmon: (w83781d) Add missing curly braces
2007-10-25 11:11 [lm-sensors] [PATCH] hwmon: (w83781d) Add missing curly braces Jean Delvare
2007-10-26 22:28 ` Voipio Riku
@ 2007-10-28 17:41 ` Mark M. Hoffman
1 sibling, 0 replies; 3+ messages in thread
From: Mark M. Hoffman @ 2007-10-28 17:41 UTC (permalink / raw)
To: lm-sensors
Hi:
* Voipio Riku <Riku.Voipio@movial.fi> [2007-10-27 01:28:08 +0300]:
> > 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.
>
> This is clearly the correct fix:
>
> Acked-By: Riku Voipio <riku.voipio@movial.fi>
>
> > Signed-off-by: Jean Delvare <khali@linux-fr.org>
> > ---
> > drivers/hwmon/w83781d.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to hwmon-2.6.git/testing, thanks.
--
Mark M. Hoffman
mhoffman@lightlink.com
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-28 17:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-25 11:11 [lm-sensors] [PATCH] hwmon: (w83781d) Add missing curly braces Jean Delvare
2007-10-26 22:28 ` Voipio Riku
2007-10-28 17:41 ` Mark M. Hoffman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.