The variable result is being initialized with a value that is never
read and it is being updated later with a new value. The initialization
is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
        int i, max_level = 0;
        unsigned long long level, level_old;
        struct acpi_video_device_brightness *br = NULL;
-       int result = -EINVAL;
+       int result;
 
        result = acpi_video_get_levels(device->dev, &br, &max_level);
        if (result)