diff options
author | Chaitanya Kulkarni <[email protected]> | 2021-03-09 17:16:32 -0800 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2021-04-02 18:48:27 +0200 |
commit | de5878048e11f1ec44164ebb8994de132074367a (patch) | |
tree | 0792b9339a3e8dc0713d9ae4b8e33e4bd5d3a2d9 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | b53d47418d98dbf5cd082e756a9e4e2a426492d7 (diff) |
nvmet: remove unnecessary ctrl parameter
The function nvmet_ctrl_find_get() accepts out pointer to nvmet_ctrl
structure. This function returns the same error value from two places
that is :- NVME_SC_CONNECT_INVALID_PARAM | NVME_SC_DNR.
Move this to the caller so we can change the return type to nvmet_ctrl.
Now that we can changed the return type, instead of taking out pointer
to the nvmet_ctrl structure remove that function parameter and return
the valid nvmet_ctrl pointer on success and NULL on failure.
Also, add and rename the goto labels for more readability with comments.
Signed-off-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions