[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210223080630.44644-1-dingsenjie@163.com>
Date: Tue, 23 Feb 2021 16:06:30 +0800
From: dingsenjie@....com
To: gregkh@...uxfoundation.org, shawnguo@...nel.org,
s.hauer@...gutronix.de
Cc: linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org,
dingsenjie <dingsenjie@...ong.com>
Subject: [PATCH] tty/serial:Remove superfluous "breaks"
From: dingsenjie <dingsenjie@...ong.com>
Remove superfluous "breaks", as there is a "return" before them.
Signed-off-by: dingsenjie <dingsenjie@...ong.com>
---
drivers/tty/serial/imx.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 425624d..6c1c31a 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -300,7 +300,6 @@ static u32 imx_uart_readl(struct imx_port *sport, u32 offset)
switch (offset) {
case UCR1:
return sport->ucr1;
- break;
case UCR2:
/*
* UCR2_SRST is the only bit in the cached registers that might
@@ -311,16 +310,12 @@ static u32 imx_uart_readl(struct imx_port *sport, u32 offset)
if (!(sport->ucr2 & UCR2_SRST))
sport->ucr2 = readl(sport->port.membase + offset);
return sport->ucr2;
- break;
case UCR3:
return sport->ucr3;
- break;
case UCR4:
return sport->ucr4;
- break;
case UFCR:
return sport->ufcr;
- break;
default:
return readl(sport->port.membase + offset);
}
--
1.9.1
Powered by blists - more mailing lists