[PATCH 0/2] drivers/tty: delete break after return or goto

Bernard Zhao
2020-11-04T10:55:24Z

This patch sereies optimise code like:
{
case XXX:
return XXX;
break; //The break is meanless, so just delete it.
case YYY:
goto YYY;
break; //The break is meanless, so just delete it.
......
}

Signed-off-by: Bernard Zhao <bernard@vivo.com>

---
Bernard Zhao (2):
drivers/tty/nozomi.c: delete no use break after goto
drivers/tty/serial/imx.c: delete no use break after return

drivers/tty/nozomi.c | 4 ----
drivers/tty/serial/imx.c | 5 -----
2 files changed, 9 deletions(-)

--
2.29.0