diff options
author | Chuck Lever <[email protected]> | 2022-09-28 09:00:48 -0400 |
---|---|---|
committer | Anna Schumaker <[email protected]> | 2022-10-05 15:47:17 -0400 |
commit | e4266f23ecdf0d3d1f1d9e8fff730e1f962b0687 (patch) | |
tree | 4ffb889a53623c4309f993046794fd9f48835771 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | f20f18c95630e9b53f5081fd5df3bb705c450bbe (diff) |
xprtrdma: Fix uninitialized variable
net/sunrpc/xprtrdma/frwr_ops.c:151:32: warning: variable 'rc' is uninitialized when used here [-Wuninitialized]
trace_xprtrdma_frwr_alloc(mr, rc);
^~
net/sunrpc/xprtrdma/frwr_ops.c:127:8: note: initialize the variable 'rc' to silence this warning
int rc;
^
= 0
1 warning generated.
The tracepoint is intended to record the error returned from
ib_alloc_mr(). In the current code there is no other purpose for
@rc, so simply replace it.
Reported-by: kernel test robot <[email protected]>
Fixes: d8cf39a280c3b0 ('xprtrdma: MR-related memory allocation should be allowed to fail')
Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions