net: rmnet_data: Remove ip type check in deaggregate handler

This was originally added for debug and is no longer needed.

Change-Id: I9780e86ff0db31eaa13f2470c19f1424db3311b8
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
This commit is contained in:
Subash Abhinov Kasiviswanathan 2015-08-28 15:55:31 -06:00 committed by David Keitel
parent a5bfaf0d40
commit 747f0aec1b

View file

@ -125,7 +125,6 @@ struct sk_buff *rmnet_map_deaggregate(struct sk_buff *skb,
struct sk_buff *skbn;
struct rmnet_map_header_s *maph;
uint32_t packet_len;
uint8_t ip_byte;
if (skb->len == 0)
return 0;
@ -159,14 +158,6 @@ struct sk_buff *rmnet_map_deaggregate(struct sk_buff *skb,
return 0;
}
/* Sanity check */
ip_byte = (skbn->data[4]) & 0xF0;
if (!RMNET_MAP_GET_CD_BIT(skbn) && ip_byte != 0x40 && ip_byte != 0x60) {
LOGM("Unknown IP type: 0x%02X", ip_byte);
rmnet_kfree_skb(skbn, RMNET_STATS_SKBFREE_DEAGG_UNKOWN_IP_TYP);
return 0;
}
return skbn;
}