From: Subash Abhinov Kasiviswanathan Date: Sun, 7 Jan 2018 18:36:31 +0000 (-0700) Subject: net: qualcomm: rmnet: Remove redundant check when stamping map header X-Git-Tag: v4.19~1702^2~225^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b5ba67745fec91c77f30eb1ac7a8f03201a696f;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c index 86b8c75..978ce26 100644 --- a/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c +++ b/drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c @@ -32,9 +32,6 @@ struct rmnet_map_header *rmnet_map_add_map_header(struct sk_buff *skb, u32 padding, map_datalen; u8 *padbytes; - if (skb_headroom(skb) < sizeof(struct rmnet_map_header)) - return NULL; - map_datalen = skb->len - hdrlen; map_header = (struct rmnet_map_header *) skb_push(skb, sizeof(struct rmnet_map_header));