aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChaitanya Kulkarni <[email protected]>2021-03-09 17:16:32 -0800
committerChristoph Hellwig <[email protected]>2021-04-02 18:48:27 +0200
commitde5878048e11f1ec44164ebb8994de132074367a (patch)
tree0792b9339a3e8dc0713d9ae4b8e33e4bd5d3a2d9 /tools/perf/scripts/python
parentb53d47418d98dbf5cd082e756a9e4e2a426492d7 (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')
0 files changed, 0 insertions, 0 deletions