vmd(8): deduplicate vioblk command logic
authordv <dv@openbsd.org>
Fri, 11 Jun 2021 21:46:00 +0000 (21:46 +0000)
committerdv <dv@openbsd.org>
Fri, 11 Jun 2021 21:46:00 +0000 (21:46 +0000)
commit53f59f88a954c5bb9288f3787b5d75bf5ecabd23
treefba968d866ea189d7cc2a84d5245d0f027d68756
parent38678f29ec1ba0dbcf4541408b6ef87aad79058d
vmd(8): deduplicate vioblk command logic

No need for each case in the switch block to have the same logic
for updating the used ring and writing the state back to the guest.
Move it outside the switch. No functional change.

ok mlarkin@
usr.sbin/vmd/virtio.c