[PATCH] char: lp: remove unneeded break

From: trix
Date: Mon Oct 19 2020 - 15:46:40 EST


From: Tom Rix <trix@xxxxxxxxxx>

A break is not needed if it is preceded by a return

Signed-off-by: Tom Rix <trix@xxxxxxxxxx>
---
drivers/char/lp.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index 0ec73917d8dd..862c2fd933c7 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -622,7 +622,6 @@ static int lp_do_ioctl(unsigned int minor, unsigned int cmd,
break;
case LPSETIRQ:
return -EINVAL;
- break;
case LPGETIRQ:
if (copy_to_user(argp, &LP_IRQ(minor),
sizeof(int)))
--
2.18.1