diff options
| author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2021-03-09 17:16:32 -0800 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2021-04-02 18:48:27 +0200 |
| commit | de5878048e11f1ec44164ebb8994de132074367a (patch) | |
| tree | 0792b9339a3e8dc0713d9ae4b8e33e4bd5d3a2d9 /tools/perf/scripts/python/flamegraph.py | |
| parent | nvmet-fc: update function documentation (diff) | |
| download | linux-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/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
