From: Syam Sidhardhan Date: Sun, 24 Feb 2013 23:12:53 +0000 (+0000) Subject: ACPI / processor: Remove redundant NULL check before kfree X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5273a258373a84bbbcbccabb356de5b68e2b8931;p=linux-beck.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; }