From patchwork Thu Jun 26 13:41:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4427781 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CDC13BEEAA for ; Thu, 26 Jun 2014 13:42:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 36F0520351 for ; Thu, 26 Jun 2014 13:42:48 +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 7902C20306 for ; Thu, 26 Jun 2014 13:42:44 +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 1X09v6-0007EF-G5; Thu, 26 Jun 2014 13:40:56 +0000 Received: from mail-la0-f50.google.com ([209.85.215.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X09v0-00074c-8n for linux-arm-kernel@lists.infradead.org; Thu, 26 Jun 2014 13:40:54 +0000 Received: by mail-la0-f50.google.com with SMTP id pv20so1912000lab.9 for ; Thu, 26 Jun 2014 06:40:20 -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=nzTB0gKgfV7cCCjJuYUFfphICn2nXd+CnfSMuG5PYN4=; b=ZsoP86Pklc6vQcR35OMV4c8SQAd27tecPpYL7DQbGE7Pt4n0hVK42EFzA4rVKKkeHU OJaTb+a8iIXH80RTJI3DJ/Uej+AT6+XcmaDZXUtaObEWqRHhfrKoWgPZwaeKaUA/ChUl lyKF+OSos3YuH9Xcuyx4HxLf/jYEP96mNJHKlMVAslhUQFnD1tO0CEqDn6nceDG9IYnz 1kYxPrHDAYaC5ZfxK9y6qMNuj0ziCCbCo5Z4/94WFMwWycFW2uLvPy0H54tMQ4BD4/ys /2C2HNWuP9X8WmhoE4FdAmiVGhBXWuLXPW8ztMhZ0olbWAMt3h80Sj+EXhFLCdNjAbPu TC9A== X-Gm-Message-State: ALoCoQmPycd7YKTyXeRBtKgwTDcrH3yqYLmh5hikepIu9zKhx44qFbDQr/nnluJqWSKqnEUK5O0T X-Received: by 10.152.6.131 with SMTP id b3mr11178213laa.9.1403790019619; Thu, 26 Jun 2014 06:40:19 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id bd3sm7623657lbc.14.2014.06.26.06.40.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jun 2014 06:40:18 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Linus Walleij Subject: [PATCH] pinctrl: pinctrl-at91.c: Cleaning up values that are never used Date: Thu, 26 Jun 2014 15:41:31 +0200 Message-Id: <1403790091-11423-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_064050_494972_5B9A103E X-CRM114-Status: GOOD ( 10.88 ) X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, Rickard Strandqvist , 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 --- drivers/pinctrl/pinctrl-at91.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 421493c..9854a29 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -793,9 +793,9 @@ static void at91_pinconf_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, unsigned pin_id) { unsigned long config; - int ret, val, num_conf = 0; + int val, num_conf = 0; - ret = at91_pinconf_get(pctldev, pin_id, &config); + at91_pinconf_get(pctldev, pin_id, &config); DBG_SHOW_FLAG(MULTI_DRIVE); DBG_SHOW_FLAG(PULL_UP);