Skip to content

Commit 966f58d

Browse files
Colin Ian Kingrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 98d54f8 commit 966f58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/acpi_video.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ acpi_video_init_brightness(struct acpi_video_device *device)
943943
int i, max_level = 0;
944944
unsigned long long level, level_old;
945945
struct acpi_video_device_brightness *br = NULL;
946-
int result = -EINVAL;
946+
int result;
947947

948948
result = acpi_video_get_levels(device->dev, &br, &max_level);
949949
if (result)

0 commit comments

Comments
 (0)