Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp683200ybl; Wed, 8 Jan 2020 04:13:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzOzpFMVRhTp6/4MhzITl2ujTn2OlQLyBhlee4CpQ/jj6B7Lnf1QnnL/DzzB2UOZi2Feugu X-Received: by 2002:a9d:774e:: with SMTP id t14mr3853642otl.358.1578485589154; Wed, 08 Jan 2020 04:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578485589; cv=none; d=google.com; s=arc-20160816; b=AEDw5J8ngabIpv74IdoUO0uKzWbhB3UKYqPylcatEjkFacQC+Ri2wtcHbPkNU62vXL v9fLZrKG97WKG+EPf/s+kzFzIMGKWbUbX0Q1tKsqn23EO4dx67JkwnENqlEH+Ngj85Hb hQEiomBD5YEpbst2qj0xbYHgMDKMYb0jwgMsv6rwzPoU0Ou72dxu8lR4ieOQIEpb1otB jysmM94bwODcSiV2kKuP4/CFAj7ihLk0X8LGLF7LdppuXADnv+DFsvCPaEvG6hPtZ4MV n3ukTPGJQZEYG8tIBbfR3L+yuzhI1eB6Ho+2mDJDAHbwPFUVZzIx+ab0zaUKJsPnQVoN 7Cvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=bHkq31I8XGLUfWRRprMYEYVXk1L9YfMZjUuCzfRB3J4=; b=x602RHzno1B5GJcPCMpgURpAnZIK61UoImmeG/ytSErU2NpL+uEptZXiCRIovnfOt2 Ahc6qKKPHaQaMI6v1Fs+Wa3b35x6BEG2BOp1M30Ks5JQxV7FYCgMC7RQbWLWHJwnnzqs On4CyNcxO1DN0s9siNm63ZNHOdK+j9SQwuajKURTQ5/BPrj2jSzG86UFb1LxQf+0toNn sPW87s8Ba445xKCbnC1GFgqFffukMDW02ukw/eA7QKQ1/MbIiBdSAj8m+/ljD7BYzaQD DzvxumoZX3iT5PwVrAdj6fQfzCgxNRdWJi8rRVkJqbZVkrGK4j/1K6VPvTMD84Gucfa5 QFBg== ARC-Authentication-Results: i=1; mx.google.com; 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 o15si1745584otp.314.2020.01.08.04.12.56; Wed, 08 Jan 2020 04:13:09 -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; 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 S1727427AbgAHML6 (ORCPT + 99 others); Wed, 8 Jan 2020 07:11:58 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8244 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726252AbgAHML5 (ORCPT ); Wed, 8 Jan 2020 07:11:57 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8C116BDF79AC0C0834EB; Wed, 8 Jan 2020 20:11:55 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Wed, 8 Jan 2020 20:11:45 +0800 From: YueHaibing To: , CC: , , YueHaibing Subject: [PATCH -next] gpiolib: remove set but not used variable 'config' Date: Wed, 8 Jan 2020 20:11:17 +0800 Message-ID: <20200108121117.45060-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, unsigned int offset, arg = 0; } - config = PIN_CONF_PACKED(mode, arg); return gpio_do_set_config(gc, offset, mode); } -- 2.7.4