net/hns3: simplify process of some return values
authorLijun Ou <oulijun@huawei.com>
Fri, 10 Apr 2020 11:09:22 +0000 (19:09 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit10ed8b8721f622aa510746fdab8a94d9671a72b3
tree103d9f2d1a5964a790c25bd91910ef48cacaea58
parent0265a1980f7b2752b0cba9c476eb6c670b8ad778
net/hns3: simplify process of some return values

Currently, the return value processing of some functions can be combined
and the result is that some codes can be optimized.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_dcb.c
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev_vf.c