diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-02-29 01:12:43 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-03-04 10:43:04 +0100 |
commit | 966f58df1753b436c9e16644c4c683a2395beb45 (patch) | |
tree | cbefdbb281207b0321cbc20c05a172080cbbea65 /drivers/acpi/acpi_video.c | |
parent | Linux 5.6-rc4 (diff) | |
download | linux-966f58df1753b436c9e16644c4c683a2395beb45.tar.xz linux-966f58df1753b436c9e16644c4c683a2395beb45.zip |
ACPI: video: remove redundant assignments to variable result
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>
Diffstat (limited to 'drivers/acpi/acpi_video.c')
-rw-r--r-- | drivers/acpi/acpi_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c index 15c5b272e698..bc96457c9e25 100644 --- a/drivers/acpi/acpi_video.c +++ b/drivers/acpi/acpi_video.c @@ -943,7 +943,7 @@ acpi_video_init_brightness(struct acpi_video_device *device) 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) |