From patchwork Thu Jun 26 13:44:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4427821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F2B8E9F319 for ; Thu, 26 Jun 2014 13:46:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 596D220351 for ; Thu, 26 Jun 2014 13:46:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A031B20306 for ; Thu, 26 Jun 2014 13:45:59 +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 1X09xz-0008Hv-HV; Thu, 26 Jun 2014 13:43:55 +0000 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X09xr-00086t-Mr for linux-arm-kernel@lists.infradead.org; Thu, 26 Jun 2014 13:43:51 +0000 Received: by mail-wi0-f169.google.com with SMTP id hi2so1109505wib.2 for ; Thu, 26 Jun 2014 06:43:23 -0700 (PDT) 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; bh=WupFGTeS+gg101CIyg3fA53qfa3q6tHQmRhsQZwbnZQ=; b=JkfRUZ42O0lvreTvOOYO0HB4cSFeRmEZlaHzVRAUdaItQixaxr01Lp0jprODUwcfoS QSTNTs+KjtKstoHigjUC6iZhKTHhwGcXKKHmtmAzb+1/6egAR1Rs6aowAogTfqbVqz3g BaXhT5OCToaJRzclhWJjaaWIMTUWe7iUje0uKZKAVfrgBy5zteSw81ptDLnHuFeUKENh pQL2KopPK+jKjy1Yvh9SgpTuu0DBsAcQ8MJYnmbyEf04BOSzvRZGWojvUNR1uxBt+veA oe08wOnd0zlDLSgCmHpOp+H/4Z9j6NMwntISgraP0/suTID0F2sR+Vm3DplORuiDh89F 4/BA== X-Gm-Message-State: ALoCoQmZhCGqxfIUYjVBFhnbfE/YpVKsWhhtFsdqHBSlW54Djl64QzMIGCZm5hqoZKo9f4OKXLGa X-Received: by 10.180.13.139 with SMTP id h11mr4569757wic.40.1403790202347; Thu, 26 Jun 2014 06:43:22 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id 20sm12763190wjt.42.2014.06.26.06.43.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jun 2014 06:43:21 -0700 (PDT) From: Rickard Strandqvist To: Srinivas Kandagatla , Maxime Coquelin Subject: [PATCH] pinctrl: pinctrl-st.c: Cleaning up values that are never used Date: Thu, 26 Jun 2014 15:44:32 +0200 Message-Id: <1403790272-11635-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140626_064347_897184_A5716365 X-CRM114-Status: GOOD ( 10.19 ) X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, kernel@stlinux.com, Rickard Strandqvist , Linus Walleij , Patrice Chotard , linux-kernel@vger.kernel.org, Rob Herring , Grant Likely , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD, 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 Remove variable that are never used This was found using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Acked-by: Patrice Chotard --- drivers/pinctrl/pinctrl-st.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index 1bd6363bc9..d3bd687 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c @@ -1178,9 +1178,7 @@ static int st_pctl_dt_parse_groups(struct device_node *np, const __be32 *list; struct property *pp; struct st_pinconf *conf; - phandle phandle; struct device_node *pins; - u32 pin; int i = 0, npins = 0, nr_props; pins = of_get_child_by_name(np, "st,pins"); @@ -1218,8 +1216,8 @@ static int st_pctl_dt_parse_groups(struct device_node *np, conf = &grp->pin_conf[i]; /* bank & offset */ - phandle = be32_to_cpup(list++); - pin = be32_to_cpup(list++); + be32_to_cpup(list++); + be32_to_cpup(list++); conf->pin = of_get_named_gpio(pins, pp->name, 0); conf->name = pp->name; grp->pins[i] = conf->pin;