Skip to content

Commit

Permalink
serial: mvebu-uart: fix unused variable warning
Browse files Browse the repository at this point in the history
There's a warning shows that 'ret' becomes an unused variable
after simplify the return expression of mvebu_uart_probe(). So
remove it.

Fixes: b635370 ("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>
  • Loading branch information
Qinglang Miao authored and Greg Kroah-Hartman committed Sep 29, 2020
1 parent 988d076 commit 58e4934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/mvebu-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 58e4934

Please sign in to comment.