Skip to content

Commit

Permalink
net: hns3: Change return value in hnae3_register_client
Browse files Browse the repository at this point in the history
A client includes many client instance. Just like ae_algo, Initializing
client instance failed does not represent registering client failed.
The action of registering client just is adding client to the client
list and the result always is true. This patch changes the return
value of hnae3_register_client form a variable value to a fixed value,
makes the function always return ok.

Signed-off-by: Fuyun Liang <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: Salil Mehta <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
hwlfy authored and davem330 committed May 16, 2018
1 parent 854cf33 commit 0c69825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/hisilicon/hns3/hnae3.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ int hnae3_register_client(struct hnae3_client *client)
exit:
mutex_unlock(&hnae3_common_lock);

return ret;
return 0;
}
EXPORT_SYMBOL(hnae3_register_client);

Expand Down

0 comments on commit 0c69825

Please sign in to comment.