From patchwork Wed Apr 20 01:40:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 8884761 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4F839BF29F for ; Wed, 20 Apr 2016 01:42:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 81D3A202E5 for ; Wed, 20 Apr 2016 01:42:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A25DB2024F for ; Wed, 20 Apr 2016 01:42:41 +0000 (UTC) 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 1ash8y-0000of-Ad; Wed, 20 Apr 2016 01:41:28 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ash8g-0000Mf-6V for linux-arm-kernel@lists.infradead.org; Wed, 20 Apr 2016 01:41:10 +0000 Received: by mail-pa0-x235.google.com with SMTP id r5so11046770pag.1 for ; Tue, 19 Apr 2016 18:40:49 -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=3bReH887sZ5Pekpi8Ec27hQjF5LmNzfYNizdbEp17XE=; b=BtFoivfkiCfVLHRu/yNiEXoPy+rUZpei7qQeHTg03rayZvVAs/3kY940EDnmIid5CY pXOXoju1cjP4Xm2iloePiwcmGilLCKaHPTgDMrfti9mLKx511Yrqt8D9onYrw/yTgQ+D CIHqxMU0HKEwczb1IMURl8exqBCk8Nvimun2qZFG8nxfJyh20/j/4iQxQ//iMFeQLgY+ 23Xqb2LhCSBGG/6JE1xU7J3vt+Rh3X2HbjFWOFnqnacFwqBLoP5WiiUDBN01wXZgZ0gA TO4aarV5q5diby4adHDagYaiOyYXBjIHVHRihhnTtquiOX1Fvz2dqSRD0TjoPL8lkz6G hLMw== 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=3bReH887sZ5Pekpi8Ec27hQjF5LmNzfYNizdbEp17XE=; b=hGArEdnJmZNpucJCrmdQnTD6Ms0JHqeU2A/sFyPFmzp30ihdwHNWfiZMKnTkkHtaXR PnOBF586U/HhNLNTqw2AqFwDuROgUTiY2bENuea+MPyRE+S9KZZxGSbD+AwdPuhVvBRB QIfhFIN6pK9YEDddClPZmZQ/aYa1tH0HTpnCcn5sEcLPKsVwmzGkG8IxfRwj08RwaSG7 WdEiTywJyishTqkys67UTiB4HPTneTRLi1GFPIhBbHdOESqA/VEJqSPORKjgJCtTTt5r OqiQi1PRr4BzPlwY4Yj5pBMcQA/FwKafZDuzV86rCop3ZPHBuxCi1lpkHQ0etpzLElz0 78Tg== X-Gm-Message-State: AOPr4FXPKr4r5Tkx4zZvYIaW0Wtk/CwMjWPDFcps8Rb5BdOjy3kaHQvFP8n7nZyhN3H9tA== X-Received: by 10.66.148.232 with SMTP id tv8mr8561610pab.21.1461116449511; Tue, 19 Apr 2016 18:40:49 -0700 (PDT) Received: from dl.caveonetworks.com ([64.2.3.194]) by smtp.gmail.com with ESMTPSA id 184sm7764069pfd.43.2016.04.19.18.40.45 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Apr 2016 18:40:46 -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 u3K1ejBF023050; Tue, 19 Apr 2016 18:40:45 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id u3K1ejlW023049; Tue, 19 Apr 2016 18:40:45 -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 v5 03/14] acpi, numa: remove duplicate NULL check Date: Tue, 19 Apr 2016 18:40:28 -0700 Message-Id: <1461116439-22991-4-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1461116439-22991-1-git-send-email-ddaney.cavm@gmail.com> References: <1461116439-22991-1-git-send-email-ddaney.cavm@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160419_184110_308025_DA226618 X-CRM114-Status: GOOD ( 11.93 ) X-Spam-Score: -2.7 (--) 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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: {