net: qualcomm: rmnet: Remove redundant check when stamping map header

We already check the headroom once in rmnet_map_egress_handler(),
so this is not needed.

Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Subash Abhinov Kasiviswanathan 2018-01-07 11:36:31 -07:00 committed by David S. Miller
parent f66faae2f8
commit 4b5ba67745
1 changed files with 0 additions and 3 deletions

View File

@ -32,9 +32,6 @@ struct rmnet_map_header *rmnet_map_add_map_header(struct sk_buff *skb,
u32 padding, map_datalen; u32 padding, map_datalen;
u8 *padbytes; u8 *padbytes;
if (skb_headroom(skb) < sizeof(struct rmnet_map_header))
return NULL;
map_datalen = skb->len - hdrlen; map_datalen = skb->len - hdrlen;
map_header = (struct rmnet_map_header *) map_header = (struct rmnet_map_header *)
skb_push(skb, sizeof(struct rmnet_map_header)); skb_push(skb, sizeof(struct rmnet_map_header));