OSDN Git Service

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)
commit1a6e552df33c0dca4fecd0a179833d1b5233012a
treedff87361f618b3b415aae8e09034b2c671ef3a06
parenta82a3fe0186d6f9b7b353c8b46ffa7e14db9ecec
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