linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] serial: imx: remove set but not used variable 'rtsirq'
@ 2018-09-20  1:58 YueHaibing
  2018-09-20  7:19 ` Uwe Kleine-König
       [not found] ` <3b23675a-f537-868f-2432-b7f8a0c8c466@suse.cz>
  0 siblings, 2 replies; 8+ messages in thread
From: YueHaibing @ 2018-09-20  1:58 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby
  Cc: YueHaibing, linux-serial, kernel-janitors, linux-kernel

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/tty/serial/imx.c: In function 'imx_uart_probe':
drivers/tty/serial/imx.c:2198:20: warning:
 variable 'rtsirq' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/tty/serial/imx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 4341589..1df7d23 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -2195,7 +2195,7 @@ static int imx_uart_probe(struct platform_device *pdev)
 	int ret = 0;
 	u32 ucr1;
 	struct resource *res;
-	int txirq, rxirq, rtsirq;
+	int txirq, rxirq;
 
 	sport = devm_kzalloc(&pdev->dev, sizeof(*sport), GFP_KERNEL);
 	if (!sport)
@@ -2220,7 +2220,6 @@ static int imx_uart_probe(struct platform_device *pdev)
 
 	rxirq = platform_get_irq(pdev, 0);
 	txirq = platform_get_irq(pdev, 1);
-	rtsirq = platform_get_irq(pdev, 2);
 
 	sport->port.dev = &pdev->dev;
 	sport->port.mapbase = res->start;


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-09-21  1:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-20  1:58 [PATCH -next] serial: imx: remove set but not used variable 'rtsirq' YueHaibing
2018-09-20  7:19 ` Uwe Kleine-König
2018-09-20 12:11   ` [PATCH] serial: imx: restore handshaking irq for imx1 Uwe Kleine-König
2018-09-20 12:17     ` Leonard Crestez
2018-09-21  1:18     ` Andy Duan
     [not found] ` <3b23675a-f537-868f-2432-b7f8a0c8c466@suse.cz>
2018-09-20  8:50   ` [PATCH -next] serial: imx: remove set but not used variable 'rtsirq' Leonard Crestez
2018-09-20  9:41     ` Andy Duan
2018-09-20 12:04       ` YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).