From patchwork Thu Oct 2 07:33:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 395815 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 846C6140161 for ; Thu, 2 Oct 2014 17:33:20 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751282AbaJBHdT (ORCPT ); Thu, 2 Oct 2014 03:33:19 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:49805 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbaJBHdT (ORCPT ); Thu, 2 Oct 2014 03:33:19 -0400 Received: by mail-wg0-f48.google.com with SMTP id n12so2298230wgh.19 for ; Thu, 02 Oct 2014 00:33:18 -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=YFuG7+yxevEZs+FAVrxTOqmw9MRT/vlx+HNdfatsYJw=; b=UGgEF4SX+tLmZW22qoc+0WUUS9+tx+SWhvFQoWZct6GlL2PrELOE/XEh4CWdWs8Ywh wDHFiV64NBAMoYgyK+zXZbjrwgGyXaPiFoVwReZJ2BmsWvtd6pwW9wMPIkUJb1JHjDRB 1TKcoFXJ78phmRWv5J5kkpBW+qSDalypaAdNcCyqP9DAZwL2MzNRrrHXfZJah8/sUZPf liDnZwQzJ02DCqbCC+pZIFHBeUMBJAOJh+CwlpsE42/xbPiJ1idh85WPopTUpKoKjbZW /f4QTtvd4FeyKwykw9v3htjlPB3VFQGB+wTpceXdgRwSpZFNyra5txuAAV8tBvGCwuTA Gpxg== X-Gm-Message-State: ALoCoQkB3KIEeMnUbQWx5yxvKcQB/j5o56TbwCWCV6XK9FOOSHDusuWi04OS+LwgsnSr2dGSIszW X-Received: by 10.180.231.9 with SMTP id tc9mr1810190wic.58.1412235197945; Thu, 02 Oct 2014 00:33:17 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id dc9sm275154wib.5.2014.10.02.00.33.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Oct 2014 00:33:17 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot , Linus Walleij Subject: [PATCH] pinctrl: abx500: get rid of unused variable Date: Thu, 2 Oct 2014 09:33:13 +0200 Message-Id: <1412235193-18743-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org commit 2fcea6cecbc965b4e02a39537d9d939f5251bbbd "pinctrl: remove remaining users of gpiochip_remove() retval" removed the use of the return value from gpiochip_remove() but missed to delete the dangling "err" variable: drivers/pinctrl/nomadik/pinctrl-abx500.c: In function 'abx500_gpio_probe': drivers/pinctrl/nomadik/pinctrl-abx500.c:1208:11: warning: unused variable 'err' [-Wunused-variable] Fix this by getting rid of the dangling variable. Reported-by: Arnd Bergmann Signed-off-by: Linus Walleij --- drivers/pinctrl/nomadik/pinctrl-abx500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/nomadik/pinctrl-abx500.c b/drivers/pinctrl/nomadik/pinctrl-abx500.c index 7df34b70e8b6..080bcf8568c9 100644 --- a/drivers/pinctrl/nomadik/pinctrl-abx500.c +++ b/drivers/pinctrl/nomadik/pinctrl-abx500.c @@ -1206,7 +1206,7 @@ static int abx500_gpio_probe(struct platform_device *pdev) const struct of_device_id *match; struct abx500_pinctrl *pct; unsigned int id = -1; - int ret, err; + int ret; int i; if (!np) {