diff options
author | Chaitanya Kulkarni <[email protected]> | 2021-02-28 18:06:05 -0800 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2021-04-02 18:48:26 +0200 |
commit | 44ef5611c2a56538c60211672f73e4ff7df913c7 (patch) | |
tree | c2e88a4cc1fc9d84a90d4a074ffa6c1cdd39e7f6 /tools/perf/scripts/python | |
parent | f21c4769d0de00f4873792f8e6f2d1c04c8cd898 (diff) |
nvme: split init identify into helper
The function nvme_init_ctrl_finish() (formerly nvme_init_identify()) has
grown over the period of time about ~200 lines given the size of nvme id
ctrl data structure.
Move the nvme_id_ctrl data structure related initilzation into helper
nvme_init_identify() and call it from nvme_init_ctrl_finish().
When we move the code into nvme_init_identify() change the local
variable i from int to unsigned int and remove the duplicate kfree()
after nvme_mpath_init() and jump to the label out_free if
nvme_mpath_ini() fails.
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