projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abbf9a0
)
net/hamradio/6pack: remove redundant check in sp_encaps()
author
Denis Efremov
<efremov@linux.com>
Fri, 5 Mar 2021 16:26:22 +0000
(19:26 +0300)
committer
David S. Miller
<davem@davemloft.net>
Fri, 5 Mar 2021 21:00:38 +0000
(13:00 -0800)
"len > sp->mtu" checked twice in a row in sp_encaps().
Remove the second check.
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/6pack.c
patch
|
blob
|
history
diff --git
a/drivers/net/hamradio/6pack.c
b/drivers/net/hamradio/6pack.c
index 71d6629e65c970e7e133cfa615aa01341a68d43f..9f5b5614a1503734e201d14e8524b74db6e8e884 100644
(file)
--- a/
drivers/net/hamradio/6pack.c
+++ b/
drivers/net/hamradio/6pack.c
@@
-171,11
+171,6
@@
static void sp_encaps(struct sixpack *sp, unsigned char *icp, int len)
goto out_drop;
}
- if (len > sp->mtu) { /* sp->mtu = AX25_MTU = max. PACLEN = 256 */
- msg = "oversized transmit packet!";
- goto out_drop;
- }
-
if (p[0] > 5) {
msg = "invalid KISS command";
goto out_drop;