Skip to contentSkip to conversation

ACPI: processor: Remove redundant NULL check before kfree

PATCH New Syam Sidhardhan 1 participant 1 message Feb 24, 2013 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: processor: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.

---
 drivers/acpi/processor_core.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/acpi/processor_core.c +1 -2
index eff7222..164d495 100644
@@ -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