[PATCH v6 03/14] acpi, numa: remove duplicate NULL check
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Will Deacon <will.deacon@xxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Mark Rutland <mark.rutland@xxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, x86@xxxxxxxxxx, "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>, Len Brown <lenb@xxxxxxxxxx>, Rob Herring <robh+dt@xxxxxxxxxx>, Frank Rowand <frowand.list@xxxxxxxxx>, Grant Likely <grant.likely@xxxxxxxxxx>, Robert Moore <robert.moore@xxxxxxxxx>, Lv Zheng <lv.zheng@xxxxxxxxx>, Hanjun Guo <hanjun.guo@xxxxxxxxxx>, Marc Zyngier <Marc.Zyngier@xxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, devel@xxxxxxxxxx
- Subject: [PATCH v6 03/14] acpi, numa: remove duplicate NULL check
- From: David Daney <ddaney.cavm@xxxxxxxxx>
- Date: Wed, 27 Apr 2016 11:07:05 -0700
- Cc: linux-kernel@xxxxxxxxxxxxxxx, Robert Richter <rrichter@xxxxxxxxxx>, David Daney <david.daney@xxxxxxxxxx>
- In-reply-to: <1461780436-27182-1-git-send-email-ddaney.cavm@gmail.com>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1461780436-27182-1-git-send-email-ddaney.cavm@gmail.com>
From: Hanjun Guo <hanjun.guo@xxxxxxxxxx>
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@xxxxxxxxxx>
Signed-off-by: Robert Richter <rrichter@xxxxxxxxxx>
Signed-off-by: David Daney <david.daney@xxxxxxxxxx>
---
drivers/acpi/numa.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c
index e34b5d0..2de6068 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:
{
--
1.7.11.7
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]