diff options
author | Wenpeng Liang <liangwenpeng@huawei.com> | 2022-03-02 14:48:28 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-03-04 17:36:32 -0400 |
commit | 904de76c42b7d758e75197f8d532a1ffafc3caad (patch) | |
tree | e3ac110165bc1c5f46c706375c6eff47cb7783b4 /scripts/gdb/linux/proc.py | |
parent | cf7f8f5c1c541ece6ec265432c8cf22a6edf067b (diff) |
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 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions