diff mbox

[v7,03/15] acpi, numa: remove duplicate NULL check

Message ID 1464129345-18985-4-git-send-email-ddaney.cavm@gmail.com
State New
Headers show

Commit Message

David Daney May 24, 2016, 10:35 p.m. UTC
From: Hanjun Guo <hanjun.guo@linaro.org>


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>

---
 drivers/acpi/numa.c | 3 ---
 1 file changed, 3 deletions(-)

-- 
1.7.11.7


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox

Patch

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:
 		{