asus-wmi: backlight_init: Stop treating -ENODEV as if its not an error
[cascardo/linux.git] / drivers / platform / x86 / asus-wmi.c
index 70aec19..8a88416 100644 (file)
@@ -1271,10 +1271,7 @@ static int asus_wmi_backlight_init(struct asus_wmi *asus)
        int power;
 
        max = read_brightness_max(asus);
-
-       if (max == -ENODEV)
-               max = 0;
-       else if (max < 0)
+       if (max < 0)
                return max;
 
        power = read_backlight_power(asus);