net: qualcomm: rmnet: Remove invalid condition while stamping mux id
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Sun, 7 Jan 2018 18:36:32 +0000 (11:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 18:58:48 +0000 (13:58 -0500)
rmnet devices cannot have a mux id of 255. This is validated when
assigning the mux id to the rmnet devices. As a result, checking for
mux id 255 does not apply in egress path.

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

index 0553932..b2d317e 100644 (file)
@@ -143,10 +143,7 @@ static int rmnet_map_egress_handler(struct sk_buff *skb,
        if (!map_header)
                goto fail;
 
-       if (mux_id == 0xff)
-               map_header->mux_id = 0;
-       else
-               map_header->mux_id = mux_id;
+       map_header->mux_id = mux_id;
 
        skb->protocol = htons(ETH_P_MAP);