From 655132fc8e7af92682c95880e160e4951a380e42 Mon Sep 17 00:00:00 2001 From: Jian Jun Chen Date: Mon, 22 Oct 2018 11:41:18 +0800 Subject: [PATCH] dm: virtio: remove unused vbs_kernel_init Tracked-On: #1364 Signed-off-by: Jian Jun Chen Acked-by: Yu Wang --- devicemodel/hw/pci/virtio/virtio_kernel.c | 8 +------- devicemodel/include/virtio_kernel.h | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/devicemodel/hw/pci/virtio/virtio_kernel.c b/devicemodel/hw/pci/virtio/virtio_kernel.c index 654d8b063..ef3a35567 100644 --- a/devicemodel/hw/pci/virtio/virtio_kernel.c +++ b/devicemodel/hw/pci/virtio/virtio_kernel.c @@ -28,13 +28,7 @@ vbs_vqs_info_set(int fd, void *arg) } /* VBS-K common ops */ -/* VBS-K init/reset */ -int -vbs_kernel_init(int fd) -{ - return VIRTIO_SUCCESS; -} - +/* VBS-K reset */ int vbs_kernel_reset(int fd) { diff --git a/devicemodel/include/virtio_kernel.h b/devicemodel/include/virtio_kernel.h index d552c363b..3fe6646b8 100644 --- a/devicemodel/include/virtio_kernel.h +++ b/devicemodel/include/virtio_kernel.h @@ -30,8 +30,7 @@ enum VBS_K_STATUS { #define VIRTIO_ERROR_GENERAL 5 /* VBS-K common ops */ -/* VBS-K init/reset*/ -int vbs_kernel_init(int fd); +/* VBS-K reset*/ int vbs_kernel_reset(int fd); /* VBS-K start/stop */