From patchwork Tue Mar 14 19:08:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9624327 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6441360244 for ; Tue, 14 Mar 2017 19:09:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57C4528113 for ; Tue, 14 Mar 2017 19:09:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B16628583; Tue, 14 Mar 2017 19:09:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3344E28113 for ; Tue, 14 Mar 2017 19:09:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751113AbdCNTJB (ORCPT ); Tue, 14 Mar 2017 15:09:01 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:35413 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751226AbdCNTI7 (ORCPT ); Tue, 14 Mar 2017 15:08:59 -0400 Received: by mail-pg0-f43.google.com with SMTP id b129so94872505pgc.2 for ; Tue, 14 Mar 2017 12:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=w5/Vuctr6AEThPzdcr4NISu8mJwt5AvyUcnjEKot/iA=; b=WG9uu77NeT1wQKTe4guKdD934WLdQRlNUYBOEX79EQL9zjO0bH4/PBjdvjiXwpAfKG oBcrFuWjMUrt5CVNZGS1+O5CcG6wKcE2PCdQDPdcKdjoPdO5j7g66jHgWfOmtt/tmb51 UNEfg927qXJH7D/wmJe3xW3+0MJMAlheVT7qk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=w5/Vuctr6AEThPzdcr4NISu8mJwt5AvyUcnjEKot/iA=; b=DQjSvCuFkIuJ9+HhT+DDdBBjHNWRixLxv6DeF8EUHH7MHKdlT5zjj0bxbH/PyrQK6B g36Bx/8AzqdBjW9lnH6GN4yuzY4YxFJ8187IqQF8d1p4wp5keY3RM/u7cJ6pNUZKnECe OkFY/zwWcutcR/Ze9BExn957bvMC3si1CF8joFIRHM7OJ3p7a3I/acUGr5uea1pSFpiZ BQH1+tl3XwkqBNuca6nlMs73/KJgxAoQGuizeCS7B7x+MnUrH58CTGSfDCeMg0V0QQV5 FsfTdQ+9b19BDESlq/mQX/b7KtAVqDW3+DCaU+9sHpQ+dZz7+2nItOiiJnGAxRAruTza rmFg== X-Gm-Message-State: AMke39mAJzDRVI80iMJa+xx5nsgKS44Lz5UB/HE2w0ricvUyhLMBFTjxONBF/C7pyVEyFQTM X-Received: by 10.98.85.1 with SMTP id j1mr46053360pfb.23.1489518533342; Tue, 14 Mar 2017 12:08:53 -0700 (PDT) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 74sm40210911pge.14.2017.03.14.12.08.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 12:08:52 -0700 (PDT) From: Stephen Boyd To: Bjorn Helgaas Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Srinivas Kandagatla , Thomas Petazzoni Subject: [PATCH] PCI: aardvark: Remove msi-controller dt node probing Date: Tue, 14 Mar 2017 12:08:51 -0700 Message-Id: <20170314190851.28203-1-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.10.0.297.gf6727b0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This code assigns variables that are never used. Remove them. Reported-by: Srinivas Kandagatla Cc: Thomas Petazzoni Signed-off-by: Stephen Boyd --- drivers/pci/host/pci-aardvark.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/pci/host/pci-aardvark.c b/drivers/pci/host/pci-aardvark.c index 4fce494271cc..56e1aead65fc 100644 --- a/drivers/pci/host/pci-aardvark.c +++ b/drivers/pci/host/pci-aardvark.c @@ -917,8 +917,6 @@ static int advk_pcie_probe(struct platform_device *pdev) struct advk_pcie *pcie; struct resource *res; struct pci_bus *bus, *child; - struct msi_controller *msi; - struct device_node *msi_node; int ret, irq; pcie = devm_kzalloc(dev, sizeof(struct advk_pcie), GFP_KERNEL); @@ -962,12 +960,6 @@ static int advk_pcie_probe(struct platform_device *pdev) return ret; } - msi_node = of_parse_phandle(dev->of_node, "msi-parent", 0); - if (msi_node) - msi = of_pci_find_msi_chip_by_node(msi_node); - else - msi = NULL; - bus = pci_scan_root_bus_msi(dev, 0, &advk_pcie_ops, pcie, &pcie->resources, &pcie->msi); if (!bus) {