From patchwork Mon Jan 11 12:15:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 8002851 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@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 A7C69BEEE5 for ; Mon, 11 Jan 2016 12:15:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E1562202B8 for ; Mon, 11 Jan 2016 12:15:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1947E2027D for ; Mon, 11 Jan 2016 12:15:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758191AbcAKMP4 (ORCPT ); Mon, 11 Jan 2016 07:15:56 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:33095 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932826AbcAKMP4 (ORCPT ); Mon, 11 Jan 2016 07:15:56 -0500 Received: by mail-wm0-f54.google.com with SMTP id f206so210298128wmf.0; Mon, 11 Jan 2016 04:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=VDG1w0TaXam2gJXrolRW7g1J6fPBIbR1afC665CgdXU=; b=mSl0Fp/fDx/4XNaL6Md822Wa7cnScbtH+TeWDdGhqYR1M180oxJwVw+uYUzHoe97Jw IGDGUXP0G7gbbNDudx3hBlgButDvD6hYDxzMkQRNCOTOyC+2VJZY+fN0MUMbhuvOS/Qi 6gur3JzWLvqjyguWinEsf2N5cCFcCvcKF4nzqNAY6DzgyYXY/zPg33sDNi25LvF25xA3 d/XXv01rMgMFzRdCH6l0ve9iL12ewDxj4GPgF1ixDRSnHMUs6f9MlYrjFxgSyp+d8PsS /jW6ooKXbLhj8uekVZsgCcTy2uUwxksudYUXhjzfpXsYHPHoYGAmnDUhsBExrMmLkkBW Jbhg== X-Received: by 10.194.116.170 with SMTP id jx10mr131594197wjb.166.1452514554823; Mon, 11 Jan 2016 04:15:54 -0800 (PST) Received: from localhost (port-2692.pppoe.wtnet.de. [84.46.10.142]) by smtp.gmail.com with ESMTPSA id di8sm10343217wjc.34.2016.01.11.04.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jan 2016 04:15:54 -0800 (PST) From: Thierry Reding To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-next@vger.kernel.org Subject: [PATCH] PCI: designware: Remove unused variable Date: Mon, 11 Jan 2016 13:15:53 +0100 Message-Id: <1452514553-16287-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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: Thierry Reding Commit 50a1a3b06ddd ("PCI: designware: Simplify control flow") removed all uses of the "ret" variable in the dw_pcie_wr_conf() function but not the variable itself. Do so now to get rid of an unused variable warning. Signed-off-by: Thierry Reding --- drivers/pci/host/pcie-designware.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index 9a666dbff127..21716827847a 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c @@ -680,7 +680,6 @@ static int dw_pcie_wr_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 val) { struct pcie_port *pp = bus->sysdata; - int ret; if (dw_pcie_valid_config(pp, bus, PCI_SLOT(devfn)) == 0) return PCIBIOS_DEVICE_NOT_FOUND;