vhost-vdpa: refine ioctl pre-processing
authorJason Wang <jasowang@redhat.com>
Tue, 4 Aug 2020 16:20:37 +0000 (19:20 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 22:39:17 +0000 (18:39 -0400)
commitb0bd82bf729dbd05757e599f20df38dff5b97091
tree28f9aa110861756188f90af456763da69f42d69c
parent0a9d74d1f01eee0aafd2e98d061ef169fdf138d7
vhost-vdpa: refine ioctl pre-processing

Switch to use 'switch' to make the codes more easier to be extended.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200804162048.22587-2-eli@mellanox.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vdpa.c