commit | 74354140a579008fd164241e3697d9c37e5b8989 | [log] [tgz] |
---|---|---|
author | Huazhong Tan <tanhuazhong@huawei.com> | Thu Jan 31 04:55:44 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Jan 30 14:50:03 2019 -0800 |
tree | fefcc65024ca7679810ca4c490348adc97026c23 | |
parent | fc0c174f4223b7340999e1b3004dbc3b3b9b06de [diff] |
net: hns3: change hnae3_register_ae_dev() to int hnae3_register_ae_dev() may fail, and it should return a error code to its caller, so change hnae3_register_ae_dev() return type to int. Also, when hnae3_register_ae_dev() return error, hns3_probe() should do some error handling and return the error code. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>