hwmon: (w83627ehf) Add missing break statement
authorGuenter Roeck <linux@roeck-us.net>
Thu, 21 Jun 2012 13:32:40 +0000 (06:32 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 22 Jul 2012 04:48:28 +0000 (21:48 -0700)
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>
drivers/hwmon/w83627ehf.c

index 54922ed129787df0e6a6c4fe92f0115d88d303b5..1821b7423d5b77ae5a9e6cdd2794a7e1b9a2c173 100644 (file)
@@ -599,6 +599,7 @@ static void nct6775_write_fan_div(struct w83627ehf_data *data, int nr)
                reg = (w83627ehf_read_value(data, NCT6775_REG_FANDIV1) & 0x7)
                    | ((data->fan_div[1] << 4) & 0x70);
                w83627ehf_write_value(data, NCT6775_REG_FANDIV1, reg);
+               break;
        case 2:
                reg = (w83627ehf_read_value(data, NCT6775_REG_FANDIV2) & 0x70)
                    | (data->fan_div[2] & 0x7);