diff options
author | 2017-02-18 12:28:15 +0100 | |
---|---|---|
committer | 2017-02-19 09:27:29 -0500 | |
commit | 4cd33aafe45866860b7c72401297d1efcd7bd8aa (patch) | |
tree | 191aa38d27eaf1854454ad94e2dca83c9a5270d6 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | RDMA/bnxt_re: add DCB dependency (diff) | |
download | linux-dev-4cd33aafe45866860b7c72401297d1efcd7bd8aa.tar.xz linux-dev-4cd33aafe45866860b7c72401297d1efcd7bd8aa.zip |
RDMA/qedr: Fix some error handling
'qedr_alloc_pbl_tbl()' can not return NULL.
In qedr_init_user_queue():
- simplify the test for the return value, no need to test for NULL
- propagate the error pointer if needed, otherwise 0 (success) is returned.
This is spurious.
In init_mr_info():
- test the return value with IS_ERR
- propagate the error pointer if needed instead of an exlictit -ENOMEM.
This is a no-op as the only error pointer that we can have here is
already -ENOMEM
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions