Skip to content

Commit 69530b4

Browse files
Yang Lirafaeljw
authored andcommitted
ACPI: processor_throttling: Remove redundant initialization of 'obj'
'obj' is being initialized, however this value is never read as 'obj' is assigned an updated value later. Remove the redundant initialization. Clean up clang warning: drivers/acpi/processor_throttling.c:409:20: warning: Value stored to 'obj' during its initialization is never read [clang-analyzer-deadcode.DeadStores] Reported-by: Abaci Robot <[email protected]> Signed-off-by: Yang Li <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 65ea8f2 commit 69530b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/processor_throttling.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static int acpi_processor_get_throttling_control(struct acpi_processor *pr)
408408
acpi_status status = 0;
409409
struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
410410
union acpi_object *ptc = NULL;
411-
union acpi_object obj = { 0 };
411+
union acpi_object obj;
412412
struct acpi_processor_throttling *throttling;
413413

414414
status = acpi_evaluate_object(pr->handle, "_PTC", NULL, &buffer);

0 commit comments

Comments
 (0)