]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: reuse the definition of l3 and l4 header info union
authorliyongxin <liyongxin1@huawei.com>
Wed, 30 Jan 2019 20:55:41 +0000 (04:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2019 22:50:03 +0000 (14:50 -0800)
commitac17a9f259c456503f641555d43f506d897b3979
treedff87361f618b3b415aae8e09034b2c671ef3a06
parent30973714788ef4c4d31b4585837671b05cc6efd9
net: hns3: reuse the definition of l3 and l4 header info union

Union l3_hdr_info and l4_hdr_info have already been defined in
the hns3_enet.h, so it is unnecessary to define them elsewhere.

This patch removes the redundant definition, and reuses the one
defined in the hns3_enet.h.

Signed-off-by: liyongxin <liyongxin1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h