Skip to contentSkip to conversation

char: lp: remove unneeded break

PATCH New [email protected] 1 participant 1 message Oct 19, 2020 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char: lp: remove unneeded break

From: Tom Rix <[email protected]>

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

---
 drivers/char/lp.c | 1 -
 1 file changed, 1 deletion(-)
drivers/char/lp.c +0 -1
index 0ec73917d8dd..862c2fd933c7 100644
@@ -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)))
Signature · 1 line
2.18.1