Commit 364d470d authored by Guangbin Huang's avatar Guangbin Huang Committed by Jakub Kicinski

Revert "net: hns3: add void before function which don't receive ret"

This reverts commit 5ac4f180.

Sorry for taking no notice that the function devlink_register() has been
already declared as void, so it is needs to revert this patch.
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Link: https://lore.kernel.org/r/20211204012448.51360-1-huangguangbin2@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 01081be1
...@@ -120,7 +120,7 @@ int hclge_devlink_init(struct hclge_dev *hdev) ...@@ -120,7 +120,7 @@ int hclge_devlink_init(struct hclge_dev *hdev)
hdev->devlink = devlink; hdev->devlink = devlink;
devlink_set_features(devlink, DEVLINK_F_RELOAD); devlink_set_features(devlink, DEVLINK_F_RELOAD);
(void)devlink_register(devlink); devlink_register(devlink);
return 0; return 0;
} }
......
...@@ -122,7 +122,7 @@ int hclgevf_devlink_init(struct hclgevf_dev *hdev) ...@@ -122,7 +122,7 @@ int hclgevf_devlink_init(struct hclgevf_dev *hdev)
hdev->devlink = devlink; hdev->devlink = devlink;
devlink_set_features(devlink, DEVLINK_F_RELOAD); devlink_set_features(devlink, DEVLINK_F_RELOAD);
(void)devlink_register(devlink); devlink_register(devlink);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment