aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2021-03-09 17:16:32 -0800
committerChristoph Hellwig <hch@lst.de>2021-04-02 18:48:27 +0200
commitde5878048e11f1ec44164ebb8994de132074367a (patch)
tree0792b9339a3e8dc0713d9ae4b8e33e4bd5d3a2d9 /tools/perf/scripts/python
parentnvmet-fc: update function documentation (diff)
downloadlinux-de5878048e11f1ec44164ebb8994de132074367a.tar.gz
linux-de5878048e11f1ec44164ebb8994de132074367a.zip
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 <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions