From patchwork Tue May 24 22:35:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 68541 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp892375qge; Tue, 24 May 2016 15:39:18 -0700 (PDT) X-Received: by 10.66.122.100 with SMTP id lr4mr790747pab.99.1464129556108; Tue, 24 May 2016 15:39:16 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id d64si1714087pfa.77.2016.05.24.15.39.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 May 2016 15:39:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b5Kwg-00074w-A6; Tue, 24 May 2016 22:37:02 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b5Kw4-0006nX-RR for linux-arm-kernel@lists.infradead.org; Tue, 24 May 2016 22:36:26 +0000 Received: by mail-pf0-x241.google.com with SMTP id f144so3439178pfa.2 for ; Tue, 24 May 2016 15:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0zzUu+7Q3FjngXshjWr01d5gt7bRg5U7QAwr6HfjaM8=; b=bvp0wmapV0dDzWmFikdcAZKMA7H7x6E56Mu0yyg+bCnJDDVOblS3ZBmnuoN/uiX6H7 5xct9I9i3w7fRyyeLBNrf5G6utTCmWz4KsMC62bv8B/jkjgk3uTKa9w5YcpylGhufSZa Lnkk75I4xejLBUKcAHq9YtsJj9VhWFo/qGeJU0YsvlFQNEG8u4/n8KIo1TNBqYajpZTx yUJvyRkjPx9Bb12+0i8tXjLSPGn6/JTS9blayT3ZqZUUfgDz4xRohDZFWsJXpYzr3aEx zWweaz1dugUprtfbQarEFoL2RCFS37q4J9HmM/GuWsi2R9AnTbgqAlTXmMEn2MQYT3ID cdrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0zzUu+7Q3FjngXshjWr01d5gt7bRg5U7QAwr6HfjaM8=; b=BFLAxvWbTeRRd3VnknM+JkEjtXLIFNSHA6U0ut3GENw+KmWzGlh1fZGokC1on2MCQo uZ52WH7iwvvVDY/mMQKGqeYNP7Arj9M4SHzQsfKVwaBwslwZizj6XOdU2lrsn61QbpzJ 2GPKCWiQVavQ7T3MPtqvgJ3g/vvEdoR7iM+9PA3etfoRsRflSrYa7T/1ZFb/95FLMLuF jp/bi0Lpgkz6h7FpcxLSUbhQDCDli1g5o8SQJBFIpBx8jtleu8/mWK2CjoYYV4GJoECT gxGXMozSEAPhr5F1Ie1zllRSIq32JXJgWk/3TmpXpM8UmPVaWy2RrVvIjM7jKl3kMPFx ynyg== X-Gm-Message-State: ALyK8tJSWPLvYNPfBEMP/QeMQwU/3VYcD7gCtA6S310hrhooDyW+7dmq01mdTNlqQ4IvVw== X-Received: by 10.98.96.194 with SMTP id u185mr841824pfb.13.1464129364146; Tue, 24 May 2016 15:36:04 -0700 (PDT) Received: from dl.caveonetworks.com ([50.233.148.158]) by smtp.gmail.com with ESMTPSA id o87sm26979171pfa.75.2016.05.24.15.35.59 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 May 2016 15:36:02 -0700 (PDT) Received: from dl.caveonetworks.com (localhost.localdomain [127.0.0.1]) by dl.caveonetworks.com (8.14.5/8.14.5) with ESMTP id u4OMZwiu019047; Tue, 24 May 2016 15:35:58 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id u4OMZwrE019046; Tue, 24 May 2016 15:35:58 -0700 From: David Daney To: Will Deacon , linux-arm-kernel@lists.infradead.org, Mark Rutland , Catalin Marinas , Tony Luck , Fenghua Yu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, "Rafael J. Wysocki" , Len Brown , Rob Herring , Frank Rowand , Grant Likely , Robert Moore , Lv Zheng , Hanjun Guo , Marc Zyngier , linux-ia64@vger.kernel.org, linux-acpi@vger.kernel.org, devel@acpica.org Subject: [PATCH v7 03/15] acpi, numa: remove duplicate NULL check Date: Tue, 24 May 2016 15:35:33 -0700 Message-Id: <1464129345-18985-4-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1464129345-18985-1-git-send-email-ddaney.cavm@gmail.com> References: <1464129345-18985-1-git-send-email-ddaney.cavm@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160524_153625_042216_8E447E9A X-CRM114-Status: GOOD ( 11.99 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c00:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ddaney.cavm[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Richter , linux-kernel@vger.kernel.org, David Daney MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org From: Hanjun Guo 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 Signed-off-by: Robert Richter Signed-off-by: David Daney --- 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 --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: {