Skip to contentSkip to conversation

6pack: remove duplicated packet size check

PATCH New Nicolas Kaiser 1 participant 1 message Oct 23, 2010 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 6pack: remove duplicated packet size check

Packet size is checked twice in a row.

---
 drivers/net/hamradio/6pack.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/net/hamradio/6pack.c +0 -5
index 3e5d0b6..bf71742 100644
@@ -172,11 +172,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;
Signature · 1 line
1.7.2.2