Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932571AbcDTNSb (ORCPT ); Wed, 20 Apr 2016 09:18:31 -0400 Received: from mail1.bemta3.messagelabs.com ([195.245.230.163]:46535 "EHLO mail1.bemta3.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753476AbcDTNS3 (ORCPT ); Wed, 20 Apr 2016 09:18:29 -0400 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOIsWRWlGSWpSXmKPExsUS8J9tou7sRvF wg7kz1C0ed81gtbi8aw6bxcpvP5kdmD12zrrL7rH5dLXH501yAcxRrJl5SfkVCawZ1+//YitY yFFx9u1GxgbGRvYuRi4OIYEGRonFj78wdTFyckgI+EksmjyNFSIxn1GiZ9MfFpAEi4CqxM0Xz 1lBbDYBHYlz7c1gtoiApMS/i/1gzcwCFhIzuyYwg9jCAp4Ss5ZB1PAKREu0bZ8KNkcIqGbhld UsEHFBiZMzn7BA9OpILNj9ia2LkQPIlpZY/o8DJMwpYCmx89AOsLCogIrEq4P1EFOUJD6/6GO GOFleYm/fYrASCYE4iS93TCFMa4mJmxMnMArPQrJqFpJVsxBWLWBkXsWoXpxaVJZapGuhl1SU mZ5RkpuYmaNraGCsl5taXJyYnpqTmFSsl5yfu4kRGAEMQLCD8UK78yFGSQ4mJVFeVQHxcCG+p PyUyozE4oz4otKc1OJDjDIcHEoSvI0NQDnBotT01Iq0zBxgLMKkJTh4lER440DSvMUFibnFme kQqVOMilLivAEgCQGQREZpHlwbLP4vMcpKCfMyAh0ixFOQWpSbWYIq/4pRnINRSZh3DsgUnsy 8Erjpr4AWMwEt5r8rCrK4JBEhJdXAuMDzb6be9isL7hw9s3XLl8Ox6mE3tR4mbrsq+Onc/fmC KYG3AzifBIt0XdvLxmxlX7zk0UfZlEPeOuumPxKXXHjjbatD6TG/9RGHTEMyTzMnFxV84Fr07 tu2mK4/5WxK1xZeM/Ap1H2rf9Xj3qLHubsO3Y70K+j4Y7rlrlfMdO0r51uD6y+7eCqxFGckGm oxFxUnAgAFziGh+gIAAA== X-Env-Sender: Andreas.Werner@men.de X-Msg-Ref: server-2.tower-38.messagelabs.com!1461158299!32195675!1 X-Originating-IP: [80.255.6.145] X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked X-PGP-Universal: processed; by keys.men.de on Wed, 20 Apr 2016 15:18:19 +0200 Date: Wed, 20 Apr 2016 15:18:15 +0200 From: Andreas Werner To: CC: , Subject: [PATCH 2/2] mcb: Delete num_cells variable which is not required Message-ID: <95acec18805bae2210c7ecb3405f6b5f085ea056.1461158147.git.andreas.werner@men.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [192.1.1.170] X-ClientProxiedBy: MEN-EX01.intra.men.de (192.168.1.1) To MEN-EX01.intra.men.de (192.168.1.1) X-EXCLAIMER-MD-CONFIG: e4841e51-7998-49c0-ba41-8b8a0e2d8962 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1056 Lines: 34 The num_cells variable is only used in the dev_dbg print, but we can directly use the ret variable which also includes the same value. Signed-off-by: Andreas Werner --- drivers/mcb/mcb-pci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mcb/mcb-pci.c b/drivers/mcb/mcb-pci.c index 99dd9db..b15a034 100644 --- a/drivers/mcb/mcb-pci.c +++ b/drivers/mcb/mcb-pci.c @@ -35,7 +35,6 @@ static int mcb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) struct resource *res; struct priv *priv; int ret; - int num_cells; unsigned long flags; priv = devm_kzalloc(&pdev->dev, sizeof(struct priv), GFP_KERNEL); @@ -92,9 +91,8 @@ static int mcb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) ret = chameleon_parse_cells(priv->bus, priv->mapbase, priv->base); if (ret < 0) goto out_mcb_bus; - num_cells = ret; - dev_dbg(&pdev->dev, "Found %d cells\n", num_cells); + dev_dbg(&pdev->dev, "Found %d cells\n", ret); mcb_bus_add_devices(priv->bus); -- 2.6.2