backlight: pwm_bl: Add missing curly branches in else branch
[sfrench/cifs-2.6.git] / drivers / video / backlight / pwm_bl.c
index 05d3b3802658ca3b923ef369490307c392c298b2..9c4216f08c5a1bc6b50d48d67ec3385f2934f11b 100644 (file)
@@ -125,8 +125,9 @@ static int pwm_backlight_update_status(struct backlight_device *bl)
                state.duty_cycle = compute_duty_cycle(pb, brightness);
                pwm_apply_state(pb->pwm, &state);
                pwm_backlight_power_on(pb);
-       } else
+       } else {
                pwm_backlight_power_off(pb);
+       }
 
        if (pb->notify_after)
                pb->notify_after(pb->dev, brightness);