apple-gmux: Fix up the suspend/resume patch
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / platform / x86 / apple-gmux.c
index 6dcef4f..694a15a 100644 (file)
@@ -88,7 +88,7 @@ static int gmux_update_status(struct backlight_device *bd)
        u32 brightness = bd->props.brightness;
 
        if (bd->props.state & BL_CORE_SUSPENDED)
-               brightness = 0;
+               return 0;
 
        /*
         * Older gmux versions require writing out lower bytes first then