diff mbox

[v4,10/22] vhost-user: remove vhost_user_request_translate()

Message ID 1442657533-13030-11-git-send-email-marcandre.lureau@redhat.com
State New
Headers show

Commit Message

Marc-André Lureau Sept. 19, 2015, 10:12 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

The translation is no longer needed.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 hw/virtio/vhost-user.c | 36 ------------------------------------
 1 file changed, 36 deletions(-)
diff mbox

Patch

diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c
index d5b7951..d3334f5 100644
--- a/hw/virtio/vhost-user.c
+++ b/hw/virtio/vhost-user.c
@@ -94,42 +94,6 @@  static bool ioeventfd_enabled(void)
     return kvm_enabled() && kvm_eventfds_enabled();
 }
 
-static VhostUserRequest vhost_user_request_translate(unsigned long int request)
-{
-    switch (request) {
-    case VHOST_GET_FEATURES:
-        return VHOST_USER_GET_FEATURES;
-    case VHOST_SET_FEATURES:
-        return VHOST_USER_SET_FEATURES;
-    case VHOST_SET_OWNER:
-        return VHOST_USER_SET_OWNER;
-    case VHOST_RESET_OWNER:
-        return VHOST_USER_RESET_OWNER;
-    case VHOST_SET_MEM_TABLE:
-        return VHOST_USER_SET_MEM_TABLE;
-    case VHOST_SET_LOG_BASE:
-        return VHOST_USER_SET_LOG_BASE;
-    case VHOST_SET_LOG_FD:
-        return VHOST_USER_SET_LOG_FD;
-    case VHOST_SET_VRING_NUM:
-        return VHOST_USER_SET_VRING_NUM;
-    case VHOST_SET_VRING_ADDR:
-        return VHOST_USER_SET_VRING_ADDR;
-    case VHOST_SET_VRING_BASE:
-        return VHOST_USER_SET_VRING_BASE;
-    case VHOST_GET_VRING_BASE:
-        return VHOST_USER_GET_VRING_BASE;
-    case VHOST_SET_VRING_KICK:
-        return VHOST_USER_SET_VRING_KICK;
-    case VHOST_SET_VRING_CALL:
-        return VHOST_USER_SET_VRING_CALL;
-    case VHOST_SET_VRING_ERR:
-        return VHOST_USER_SET_VRING_ERR;
-    default:
-        return VHOST_USER_MAX;
-    }
-}
-
 static int vhost_user_read(struct vhost_dev *dev, VhostUserMsg *msg)
 {
     CharDriverState *chr = dev->opaque;