ACPI / NUMA: remove duplicate NULL check
authorHanjun Guo <hanjun.guo@linaro.org>
Tue, 24 May 2016 22:35:33 +0000 (15:35 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 May 2016 12:27:07 +0000 (14:27 +0200)
The argument "header" for acpi_table_print_srat_entry()
is always checked before the function is called, it's
duplicate to check it again, remove it.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/numa.c

index a089c396566d60780b74cf3237458649e2fbaacd..6f1cad8d22a31607554d94231255f20249c4cd1a 100644 (file)
@@ -125,9 +125,6 @@ EXPORT_SYMBOL(acpi_map_pxm_to_online_node);
 static void __init
 acpi_table_print_srat_entry(struct acpi_subtable_header *header)
 {
-       if (!header)
-               return;
-
        switch (header->type) {
        case ACPI_SRAT_TYPE_CPU_AFFINITY:
                {