From: Syam Sidhardhan Date: Sun, 24 Feb 2013 23:12:53 +0000 (+0000) Subject: ACPI / processor: Remove redundant NULL check before kfree X-Git-Tag: next-20130327~74^2~1^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b66b5600825fffa0731d72ec4fe70add1e2817aa;p=karo-tx-linux.git ACPI / processor: Remove redundant NULL check before kfree kfree() on a NULL pointer is a no-op, so remove a redundant NULL pointer check in map_mat_entry(). [rjw: Changelog] Signed-off-by: Syam Sidhardhan Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index eff722278ff5..164d49569aeb 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -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; }