diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-06-21 09:32:40 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2012-07-22 00:48:28 -0400 |
commit | 58c3667d83376c2f3016465f59f22c19c8f846e1 (patch) | |
tree | aedaf79bd15acb86f9def70c1e1d02e146e266b4 /drivers/hwmon/w83627ehf.c | |
parent | 28a33cbc24e4256c143dce96c7d93bf423229f92 (diff) |
hwmon: (w83627ehf) Add missing break statement
A case statement in nct6775_write_fan_div() is missing a break. Fix it.
This patch addresses Coverity #141439: Missing break in switch.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/w83627ehf.c')
-rw-r--r-- | drivers/hwmon/w83627ehf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c index 54922ed12978..1821b7423d5b 100644 --- a/drivers/hwmon/w83627ehf.c +++ b/drivers/hwmon/w83627ehf.c | |||
@@ -599,6 +599,7 @@ static void nct6775_write_fan_div(struct w83627ehf_data *data, int nr) | |||
599 | reg = (w83627ehf_read_value(data, NCT6775_REG_FANDIV1) & 0x7) | 599 | reg = (w83627ehf_read_value(data, NCT6775_REG_FANDIV1) & 0x7) |
600 | | ((data->fan_div[1] << 4) & 0x70); | 600 | | ((data->fan_div[1] << 4) & 0x70); |
601 | w83627ehf_write_value(data, NCT6775_REG_FANDIV1, reg); | 601 | w83627ehf_write_value(data, NCT6775_REG_FANDIV1, reg); |
602 | break; | ||
602 | case 2: | 603 | case 2: |
603 | reg = (w83627ehf_read_value(data, NCT6775_REG_FANDIV2) & 0x70) | 604 | reg = (w83627ehf_read_value(data, NCT6775_REG_FANDIV2) & 0x70) |
604 | | (data->fan_div[2] & 0x7); | 605 | | (data->fan_div[2] & 0x7); |