aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio/6pack.c
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2021-03-05 19:26:22 +0300
committerDavid S. Miller <davem@davemloft.net>2021-03-05 13:00:38 -0800
commit85554bcd123e307282631defe6bf6fac5031cf60 (patch)
tree8812662fcdc71458af4b5bd22597f631e8ba3a2b /drivers/net/hamradio/6pack.c
parentr8169: fix r8168fp_adjust_ocp_cmd function (diff)
downloadlinux-dev-85554bcd123e307282631defe6bf6fac5031cf60.tar.xz
linux-dev-85554bcd123e307282631defe6bf6fac5031cf60.zip
net/hamradio/6pack: remove redundant check in sp_encaps()
"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>
Diffstat (limited to '')
-rw-r--r--drivers/net/hamradio/6pack.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/hamradio/6pack.c b/drivers/net/hamradio/6pack.c
index 71d6629e65c9..9f5b5614a150 100644
--- 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;