diff options
author | 2022-03-02 14:48:28 +0800 | |
---|---|---|
committer | 2022-03-04 17:36:32 -0400 | |
commit | 904de76c42b7d758e75197f8d532a1ffafc3caad (patch) | |
tree | e3ac110165bc1c5f46c706375c6eff47cb7783b4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | RDMA/hns: Remove similar code that configures the hardware contexts (diff) | |
download | linux-dev-904de76c42b7d758e75197f8d532a1ffafc3caad.tar.xz linux-dev-904de76c42b7d758e75197f8d532a1ffafc3caad.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions