aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorLiu Yi L <[email protected]>2020-07-12 04:20:56 -0700
committerAlex Williamson <[email protected]>2020-07-27 13:46:13 -0600
commitccd59dce1a21f473518bf273bdf5b182bab955b3 (patch)
tree0f4119aee0cdd8d379a55f019afc5eba54fb115c /lib/memory-notifier-error-inject.c
parent50173329c8cc0c892eaa7a9d0f0692ac39cd7b04 (diff)
vfio/type1: Refactor vfio_iommu_type1_ioctl()
This patch refactors the vfio_iommu_type1_ioctl() to use switch instead of if-else, and each command got a helper function. Cc: Kevin Tian <[email protected]> CC: Jacob Pan <[email protected]> Cc: Alex Williamson <[email protected]> Cc: Eric Auger <[email protected]> Cc: Jean-Philippe Brucker <[email protected]> Cc: Joerg Roedel <[email protected]> Cc: Lu Baolu <[email protected]> Reviewed-by: Eric Auger <[email protected]> Suggested-by: Christoph Hellwig <[email protected]> Signed-off-by: Liu Yi L <[email protected]> Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions