Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp814167ybl; Wed, 8 Jan 2020 06:21:14 -0800 (PST) X-Google-Smtp-Source: APXvYqyMVfsqQuRnmvL6HlKXG7yH4ujGYFtVpodyGjPzb+jd7uaJ64+zQ1IgbmqdE2RuqKFn+x7/ X-Received: by 2002:a9d:7448:: with SMTP id p8mr4090074otk.96.1578493274770; Wed, 08 Jan 2020 06:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578493274; cv=none; d=google.com; s=arc-20160816; b=0tQ+/JqjdB89Lh77Xa73unSKclGjN9TVozloUvQnPPBlcgtc3R9kHP/FFxRSnfAr0u 3NuXz5dKjw1BUK5e1paMDmSacmxjJldFwhRUbvBc2HRFzQzv6YFcStWd8yT+2WedxIvb upRhphNkLSMHZjf3dw3zE9r3Y9Ws7nWkbzLD+OTRQ71dnr6YYZ/LzgmeTaILz8jeyUgE 2nd3vLFLSSR9UWOCBYzVCc6CiqymV9VPPd633dEqJdCSgvYZaM8/qW5dVmK7h9YxLV75 5Ui9CMqzTJr7KPsHjdHN4XX2igPNaAFJDnReFwsakw6DuB6cLHKpX6Zsf+tCksXwv8S1 DiRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=346qyklA3qDZU461htPaEWZ7KyGFJdr1eYBTQuGWWLw=; b=nOUfptV8jmz27W7YSj+gu150MWd5KACeIugy165QWzmJac65NdHI9i35+cWJ+6uogS fUhRLBFcq4TV117eNVs/EknQiZH7aUnoBuYsw+Z/jEC+kabwd0X56MLwa6LRmP2J+Q1c h+vUI4X5KWyUMdVrRoxgLmRWT+qWz1J7EW5ROgjgRozZ5RZ/fh3/FabLetgi8iknboR1 k9A/l1LM19PWCdVnCO0b2hAT7HPCDPACTilb1uu9IJYR3di+5CihqIlYhVFuTZRU07So Vw0DaGOM4iS0q2Hpu/ATE+Bo13p0W0dSYweUHn8PcA9PlmLsj+hEXWplyu77nNVy7eEk 5Vuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0Lm4QX0v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si1950315otk.120.2020.01.08.06.21.02; Wed, 08 Jan 2020 06:21:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0Lm4QX0v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727581AbgAHNHr (ORCPT + 99 others); Wed, 8 Jan 2020 08:07:47 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:39697 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgAHNHq (ORCPT ); Wed, 8 Jan 2020 08:07:46 -0500 Received: by mail-qk1-f194.google.com with SMTP id c16so2513042qko.6 for ; Wed, 08 Jan 2020 05:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=346qyklA3qDZU461htPaEWZ7KyGFJdr1eYBTQuGWWLw=; b=0Lm4QX0vpXdy7jqJW18R2UNFaGBSA9YgyYd+W+YjisYEd5UfNh+waopNJhq8pEmVpJ ZYk1woK3VfrEAL9gXGysYX7hbrFdMs1osMLatiaDV+AyNIr0SDv0BsA/ltyqe9R7Hf/f U1gA7P/kR4cteDWdVIEzd+j/G742RCNYbeTmMBzJG8TTH1EdpF7ZzrinMJEnZ+wnRgxj Hb9E9Q4Hxsxx2TdUGf3h6Ph+pDAiVFeAqHc1oS8HVX2sJoraWkA3FLQfQivgQz/KliwB 7hIy4XK/AE+dxJ90I5hwyPMuqVvSxS8sMik7urKy88WgJe7zCX14ppu1LPNnL10VLOZG Skaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=346qyklA3qDZU461htPaEWZ7KyGFJdr1eYBTQuGWWLw=; b=EDzL8xI8qDayHuq9lkm6hoo8BBnupZ+0BaLH/oPOU+Tgspn8KoD5iHMlJ3O3rw/Xsw UcBRAJN2NfV+/JmAEUIg6nSWWhyhLm4RyMC1EwLqXnIeTMLIHmVVWF/93CDu5cuH1Nvd /Fdye1Sb+xO1s+rDYr74s388vwy/1h1eLtT/ETNlfwcOsZVRKD4bXVfXG1VoMN8j1QQC Gg0fjfa7K49eM+EcnB4tqfMakXI1mK/fygvx2olpAzeYlJHJB9dpsgwLz1CQeSWVJBDQ fO4R3X8XT6yAKobCfqskKUb7N1HWXUlQHisU3RJKbhJCPurrUaE/mvmmnqCwD1NpI+Z+ fuxQ== X-Gm-Message-State: APjAAAWCf4AsnG+XnEKkChT+8G8YYdt0oVjjC2LvAXksbVWlXR436QY2 VxAQXjxRnIof9fhzXWW2jZXTAMTUXCZKF38nreBFTBCW X-Received: by 2002:a05:620a:136e:: with SMTP id d14mr3814511qkl.263.1578488864477; Wed, 08 Jan 2020 05:07:44 -0800 (PST) MIME-Version: 1.0 References: <20200108121117.45060-1-yuehaibing@huawei.com> In-Reply-To: <20200108121117.45060-1-yuehaibing@huawei.com> From: Bartosz Golaszewski Date: Wed, 8 Jan 2020 14:07:33 +0100 Message-ID: Subject: Re: [PATCH -next] gpiolib: remove set but not used variable 'config' To: YueHaibing Cc: Linus Walleij , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 8 sty 2020 o 13:11 YueHaibing napisa=C5= =82(a): > > drivers/gpio/gpiolib.c: In function gpio_set_config: > drivers/gpio/gpiolib.c:3053:16: warning: > variable config set but not used [-Wunused-but-set-variable] > > commit d90f36851d65 ("gpiolib: have a single place > of calling set_config()") left behind this unused variable. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing > --- > drivers/gpio/gpiolib.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c > index 9fd2dfb..aabf801 100644 > --- a/drivers/gpio/gpiolib.c > +++ b/drivers/gpio/gpiolib.c > @@ -3050,7 +3050,6 @@ static int gpio_do_set_config(struct gpio_chip *gc,= unsigned int offset, > static int gpio_set_config(struct gpio_chip *gc, unsigned int offset, > enum pin_config_param mode) > { > - unsigned long config; > unsigned arg; > > switch (mode) { > @@ -3064,7 +3063,6 @@ static int gpio_set_config(struct gpio_chip *gc, un= signed int offset, > arg =3D 0; > } > > - config =3D PIN_CONF_PACKED(mode, arg); > return gpio_do_set_config(gc, offset, mode); > } > Reviewed-by: Bartosz Golaszewski Thanks!