projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2192bb
)
char: lp: remove unneeded break
author
Tom Rix
<trix@redhat.com>
Mon, 19 Oct 2020 19:46:28 +0000
(12:46 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 9 Nov 2020 15:05:09 +0000
(16:05 +0100)
A break is not needed if it is preceded by a return
Signed-off-by: Tom Rix <trix@redhat.com>
Link:
https://lore.kernel.org/r/20201019194628.14731-1-trix@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/lp.c
patch
|
blob
|
history
diff --git
a/drivers/char/lp.c
b/drivers/char/lp.c
index
0ec7391
..
862c2fd
100644
(file)
--- 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)))