From patchwork Thu Jun 26 13:40:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4427761 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 B06839F333 for ; Thu, 26 Jun 2014 13:41:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0CE7920306 for ; Thu, 26 Jun 2014 13:41:36 +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 4D26820304 for ; Thu, 26 Jun 2014 13:41:32 +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 1X09tX-0005gd-8K; Thu, 26 Jun 2014 13:39:19 +0000 Received: from mail-la0-f41.google.com ([209.85.215.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X09tQ-0005eU-Ve for linux-arm-kernel@lists.infradead.org; Thu, 26 Jun 2014 13:39:16 +0000 Received: by mail-la0-f41.google.com with SMTP id hz20so1903772lab.0 for ; Thu, 26 Jun 2014 06:38:49 -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=SWfVOuCGRz9rC6NxhYg4qqojuh10NlFyNKs7SJn0mNw=; b=ZeYkK18VBbD3Iu6ot1L9/Q8XIKdKgm2bt2MVkyIq+9boTUAvLW94KD0dxVADHTXQeu pW9qRdSZWAMfzTwmGsuiTblqPriXdE7+7+RQn2Irv0V1lam+lfDHDAg03qmxs6LTRilA PoBNB7Vsln1MkgA6yeBMacJWzN50JFI30hT1h2kFY2JoL6BQZ1i+q/V4M5noSUN0Sz1Z DhyIkeHJVjIZ2AxZe2pcoGJmlaNqzbBIjDa6d+xvlstVcJz5/Jq9TlGIUI3VkI/LLKl1 HCfdfUbSZ6lHBay4Ej+EPpyzt0P5AdyMLk4bFw5GXQ4A3Z2cePTXn9TUKQkEqG6aiDeE SXGA== X-Gm-Message-State: ALoCoQmhpuvMq0BJfbrQQoPxgqeuT8MjyUDjuJfxUNZEX4wE2glvHUbmSvfuYsHwcFKOw6Qszcex X-Received: by 10.112.34.69 with SMTP id x5mr1392775lbi.96.1403789929134; Thu, 26 Jun 2014 06:38:49 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id b3sm7619121lbi.15.2014.06.26.06.38.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jun 2014 06:38:48 -0700 (PDT) From: Rickard Strandqvist To: Linus Walleij , Samuel Ortiz Subject: [PATCH] mfd: ab8500-debugfs.c: Cleaning up values that are never used Date: Thu, 26 Jun 2014 15:40:00 +0200 Message-Id: <1403790000-11334-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_063913_200716_DEE47216 X-CRM114-Status: GOOD ( 11.33 ) X-Spam-Score: -0.7 (/) Cc: Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rickard Strandqvist 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/mfd/ab8500-debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index d1a22aa..d514e36 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c @@ -1350,12 +1350,11 @@ static int ab8500_print_all_banks(struct seq_file *s, void *p) { struct device *dev = s->private; unsigned int i; - int err; seq_printf(s, AB8500_NAME_STRING " register values:\n"); for (i = 0; i < AB8500_NUM_BANKS; i++) { - err = seq_printf(s, " bank 0x%02X:\n", i); + seq_printf(s, " bank 0x%02X:\n", i); ab8500_registers_print(dev, i, s); }