net/hns3: remove redundant check when setting MAC
authorChengchang Tang <tangchengchang@huawei.com>
Tue, 17 Mar 2020 09:12:00 +0000 (17:12 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:04 +0000 (13:57 +0200)
commite579435fac1aea9bc75588907ade35ddab54a419
tree745e7652fd586661322bdf1e2a93821141a274c5
parent9f8e1810f62bc6549fa7782e550f68130fc4ce8e
net/hns3: remove redundant check when setting MAC

This patch removes unnecessary MAC address validity check operation in
the .mac_addr_set ops implementation function named
hns3_set_default_mac_addr and hns3vf_set_default_mac_addr, because it
has been guaranteed that input parameter named mac_addr is valid address
in the rte layer of DPDK framework.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev_vf.c