diff options
| author | Wenpeng Liang <liangwenpeng@huawei.com> | 2022-03-02 09:48:28 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-03-05 00:36:32 +0300 |
| commit | 904de76c42b7d758e75197f8d532a1ffafc3caad (patch) | |
| tree | e3ac110165bc1c5f46c706375c6eff47cb7783b4 /rust/helpers/workqueue.c | |
| parent | cf7f8f5c1c541ece6ec265432c8cf22a6edf067b (diff) | |
| download | linux-904de76c42b7d758e75197f8d532a1ffafc3caad.tar.xz | |
RDMA/hns: Clean up the return value check of hns_roce_alloc_cmd_mailbox()
hns_roce_alloc_cmd_mailbox() never returns NULL, so the check should be
IS_ERR(). And the error code should be converted as the function's return
value.
Link: https://lore.kernel.org/r/20220302064830.61706-8-liangwenpeng@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions
