aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorLi Zhijian <[email protected]>2022-10-24 03:31:54 +0000
committerLeon Romanovsky <[email protected]>2022-10-25 08:56:32 +0300
commit686d348476ee8006087cfcbef591e28f4f91bd8b (patch)
tree2b768d96d40e1b0b4dcf20252bbdece15799fd42 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent5ac814e02ece516761d2e244cef93843df911ae0 (diff)
RDMA/rxe: Remove unnecessary mr testing
Before the testing, we already passed it to rxe_mr_copy() where mr could be dereferenced. so this checking is not needed. The only way that mr is NULL is when it reaches below line 780 with 'qp->resp.mr = NULL', which is not possible in Bob's explanation[1]. 778 if (res->state == rdatm_res_state_new) { 779 if (!res->replay) { 780 mr = qp->resp.mr; 781 qp->resp.mr = NULL; 782 } else { [1] https://lore.kernel.org/lkml/[email protected]/ Link: https://lore.kernel.org/r/[email protected] CC: Bob Pearson <[email protected]> Signed-off-by: Li Zhijian <[email protected]> Reviewed-by: Bob Pearson <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions