Skip to content

Commit c264ed4

Browse files
Colin Ian Kingdavem330
authored andcommitted
net: hns3: remove redundant assignment of l2_hdr to itself
The pointer l2_hdr is being assigned to itself, this is redundant and can be removed. Addresses-Coverity: ("Evaluation order violation") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Yunsheng Lin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d675917 commit c264ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ static int hns3_set_l2l3l4(struct sk_buff *skb, u8 ol4_proto,
810810
u8 il4_proto, u32 *type_cs_vlan_tso,
811811
u32 *ol_type_vlan_len_msec)
812812
{
813-
unsigned char *l2_hdr = l2_hdr = skb->data;
813+
unsigned char *l2_hdr = skb->data;
814814
u32 l4_proto = ol4_proto;
815815
union l4_hdr_info l4;
816816
union l3_hdr_info l3;

0 commit comments

Comments
 (0)