diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2016-05-24 15:35:33 -0700 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-05-30 14:27:07 +0200 |
commit | 258cb74ba5d16265b0e96225c06bc41cd53b9e61 (patch) | |
tree | 3e5ccea1565b678594a432307542dbbec4123c19 | |
parent | 3dda448189af1c55637628423487f607244fb669 (diff) | |
download | op-kernel-dev-258cb74ba5d16265b0e96225c06bc41cd53b9e61.zip op-kernel-dev-258cb74ba5d16265b0e96225c06bc41cd53b9e61.tar.gz |
ACPI / NUMA: remove duplicate NULL check
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>
-rw-r--r-- | drivers/acpi/numa.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index a089c39..6f1cad8 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c @@ -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: { |