net: qualcomm: rmnet: Remove unnecessary device assignment
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Thu, 22 Mar 2018 01:48:13 +0000 (19:48 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 19:00:44 +0000 (15:00 -0400)
Device of the de-aggregated skb is correctly assigned after inspecting
the mux_id, so remove the assignment in rmnet_map_deaggregate().

Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c

index 49e420e22776219097e4d566ccd40d09a2815d70..e8f6c79157be25080163f1bbacb90511da126848 100644 (file)
@@ -323,7 +323,6 @@ struct sk_buff *rmnet_map_deaggregate(struct sk_buff *skb,
        if (!skbn)
                return NULL;
 
-       skbn->dev = skb->dev;
        skb_reserve(skbn, RMNET_MAP_DEAGGR_HEADROOM);
        skb_put(skbn, packet_len);
        memcpy(skbn->data, skb->data, packet_len);