[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20191228024520.151558-1-chenzhou10@huawei.com>
Date: Sat, 28 Dec 2019 10:45:20 +0800
From: Chen Zhou <chenzhou10@...wei.com>
To: <qiang.zhao@....com>, <leoyang.li@....com>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <chenzhou10@...wei.com>
Subject: [PATCH next] soc/fsl/qe: remove set but not used variables 'mm_gc'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/soc/fsl/qe/gpio.c: In function qe_pin_request:
drivers/soc/fsl/qe/gpio.c:163:26: warning:
variable mm_gc set but not used [-Wunused-but-set-variable]
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Chen Zhou <chenzhou10@...wei.com>
---
drivers/soc/fsl/qe/gpio.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/soc/fsl/qe/gpio.c b/drivers/soc/fsl/qe/gpio.c
index 12bdfd9..ed75198 100644
--- a/drivers/soc/fsl/qe/gpio.c
+++ b/drivers/soc/fsl/qe/gpio.c
@@ -160,7 +160,6 @@ struct qe_pin *qe_pin_request(struct device_node *np, int index)
{
struct qe_pin *qe_pin;
struct gpio_chip *gc;
- struct of_mm_gpio_chip *mm_gc;
struct qe_gpio_chip *qe_gc;
int err;
unsigned long flags;
@@ -186,7 +185,6 @@ struct qe_pin *qe_pin_request(struct device_node *np, int index)
goto err0;
}
- mm_gc = to_of_mm_gpio_chip(gc);
qe_gc = gpiochip_get_data(gc);
spin_lock_irqsave(&qe_gc->lock, flags);
--
2.7.4
Powered by blists - more mailing lists