]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Use opcode directly in submit_io
authorTokunori Ikegami <ikegami.t@gmail.com>
Wed, 6 Jul 2022 17:34:30 +0000 (02:34 +0900)
committerDaniel Wagner <dwagner@suse.de>
Thu, 7 Jul 2022 09:34:20 +0000 (11:34 +0200)
commitd273281911e1cdaaed155efa0417f085066099c5
tree3eb5e10911ea5f9d15dccf1741cdec0a7bef85cd
parent5d85e8feaa96a8e283a62aa153bc43deda582c67
nvme: Use opcode directly in submit_io

submit_io is an internal functions and all callers pass the correct
opcode in. Thus no need to reparse and select the right wrapper
function (nvme_read, nvme_write, ...). Instead just pass the opcode to
the generic nvme_io function.

Note, the compare was fixed in 9b6d3fca4289 ("submit_io(): fix "nvme
compare" to pass correct command") but missed the opportunity to
cleanup this part.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
[dwagner: reworded commit message]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme.c