ACPI: processor: Remove redundant NULL check before kfree
PATCH 1/1 ACPI: processor: Remove redundant NULL check before kfree
kfree on NULL pointer is a no-op.
Signed-off-by Syam Sidhardhan <[email protected]>
--- drivers/acpi/processor_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/acpi/processor_core.c +1 -2
@@ -158,8 +158,7 @@ static int map_mat_entry(acpi_handle handle, int type, u32 acpi_id) } exit: -if (buffer.pointer) -kfree (buffer.pointer); +kfree (buffer.pointer);return apic_id; }
Signature · 1 line
1.7.9.5