diff options
author | Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> | 2013-12-07 00:13:03 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-07 00:22:05 +0400 |
commit | 59566b6e8cc8f8a05022e0f01a1b90974003f092 (patch) | |
tree | a5b939d0eea7adb6c907d5bbe354eb93b5487cb2 /drivers/vhost/vhost.c | |
parent | 941c22532f40dafa1320adbbc3776e7971bc0764 (diff) | |
download | linux-59566b6e8cc8f8a05022e0f01a1b90974003f092.tar.xz |
vhost: remove the dead branch
Since vhost_dev_init() forever return 0, some branches are never run,
therefore need to be removed.
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost/vhost.c')
-rw-r--r-- | drivers/vhost/vhost.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 69068e0d8f31..78987e481bc6 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -290,7 +290,7 @@ static void vhost_dev_free_iovecs(struct vhost_dev *dev) vhost_vq_free_iovecs(dev->vqs[i]); } -long vhost_dev_init(struct vhost_dev *dev, +void vhost_dev_init(struct vhost_dev *dev, struct vhost_virtqueue **vqs, int nvqs) { struct vhost_virtqueue *vq; @@ -319,8 +319,6 @@ long vhost_dev_init(struct vhost_dev *dev, vhost_poll_init(&vq->poll, vq->handle_kick, POLLIN, dev); } - - return 0; } EXPORT_SYMBOL_GPL(vhost_dev_init); |