summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQinglang Miao <miaoqinglang@huawei.com>2020-09-29 10:56:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-29 12:56:39 +0200
commit58e49346672f738cf6eeb62009a5b0ae194374c4 (patch)
treec51b4b0b2041736ddde4e4185cd963e1c1668552
parentvt_ioctl: make VT_RESIZEX behave like VT_RESIZE (diff)
downloadlinux-58e49346672f738cf6eeb62009a5b0ae194374c4.tar.xz
linux-58e49346672f738cf6eeb62009a5b0ae194374c4.zip
serial: mvebu-uart: fix unused variable warning
There's a warning shows that 'ret' becomes an unused variable after simplify the return expression of mvebu_uart_probe(). So remove it. Fixes: b63537020db3 ("serial: mvebu-uart: simplify the return expression of mvebu_uart_probe()") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Link: https://lore.kernel.org/r/20200929085651.158283-1-miaoqinglang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/mvebu-uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/mvebu-uart.c b/drivers/tty/serial/mvebu-uart.c
index 7443c0506eb4..118b29912289 100644
--- a/drivers/tty/serial/mvebu-uart.c
+++ b/drivers/tty/serial/mvebu-uart.c
@@ -803,7 +803,7 @@ static int mvebu_uart_probe(struct platform_device *pdev)
&pdev->dev);
struct uart_port *port;
struct mvebu_uart *mvuart;
- int ret, id, irq;
+ int id, irq;
if (!reg) {
dev_err(&pdev->dev, "no registers defined\n");