serial: mvebu-uart: fix unused variable warning
authorQinglang Miao <miaoqinglang@huawei.com>
Tue, 29 Sep 2020 08:56:51 +0000 (16:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2020 10:56:39 +0000 (12:56 +0200)
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>
drivers/tty/serial/mvebu-uart.c

index 7443c0506eb438d0735f29ef3d7f051e02185a50..118b29912289845328e91cba182ecc56ad586473 100644 (file)
@@ -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");