hw/block/nvme: remove pointless rw indirection
authorKeith Busch <kbusch@kernel.org>
Wed, 30 Sep 2020 19:22:27 +0000 (12:22 -0700)
committerKlaus Jensen <k.jensen@samsung.com>
Tue, 27 Oct 2020 10:29:20 +0000 (11:29 +0100)
commit8c125590dfa33699a267c797a41939c1ac8b77bf
tree8383817d3c0b9b8ae545ac218839d0d5b42ab544
parentb20804946bce7545ec9758d82806ee30a21b6211
hw/block/nvme: remove pointless rw indirection

The code switches on the opcode to invoke a function specific to that
opcode. There's no point in consolidating back to a common function that
just switches on that same opcode without any actual common code.
Restore the opcode specific behavior without going back through another
level of switches.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/block/nvme.c
hw/block/trace-events