net: hns3: fix incorrect return value/type of some functions
There are some functions that, when they fail to send the command, need to return the corresponding error value to its caller. Fixes: 46a3df9f ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Fixes: 681ec399 ("net: hns3: fix for vlan table lost problem when resetting") Signed-off-by:Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/hisilicon/hns3/hnae3.h 3 additions, 3 deletionsdrivers/net/ethernet/hisilicon/hns3/hnae3.h
- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 56 additions, 24 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3_enet.c
- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h 1 addition, 1 deletiondrivers/net/ethernet/hisilicon/hns3/hns3_enet.h
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c 17 additions, 17 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h 1 addition, 1 deletiondrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c 7 additions, 7 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
Loading
Please register or sign in to comment