aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_pci.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-03-31 20:53:55 -0400
committerRusty Russell <rusty@rustcorp.com.au>2008-05-02 07:50:44 -0400
commit597d56e4b51fc3385e097e52d6e92bf596ff21ec (patch)
tree7e5db5e9491ac0c24c1f2bea979dc9d957d7b537 /drivers/virtio/virtio_pci.c
parent655aa31f028c4498e8896576571ee1ea68dd26e0 (diff)
virtio: fix sparse return void-valued expression warnings
drivers/virtio/virtio_pci.c:148:2: warning: returning void-valued expression drivers/virtio/virtio_pci.c:155:2: warning: returning void-valued expression Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio/virtio_pci.c')
-rw-r--r--drivers/virtio/virtio_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c
index c0df924766a7..de102a614e97 100644
--- a/drivers/virtio/virtio_pci.c
+++ b/drivers/virtio/virtio_pci.c
@@ -145,14 +145,14 @@ static void vp_set_status(struct virtio_device *vdev, u8 status)
145 struct virtio_pci_device *vp_dev = to_vp_device(vdev); 145 struct virtio_pci_device *vp_dev = to_vp_device(vdev);
146 /* We should never be setting status to 0. */ 146 /* We should never be setting status to 0. */
147 BUG_ON(status == 0); 147 BUG_ON(status == 0);
148 return iowrite8(status, vp_dev->ioaddr + VIRTIO_PCI_STATUS); 148 iowrite8(status, vp_dev->ioaddr + VIRTIO_PCI_STATUS);
149} 149}
150 150
151static void vp_reset(struct virtio_device *vdev) 151static void vp_reset(struct virtio_device *vdev)
152{ 152{
153 struct virtio_pci_device *vp_dev = to_vp_device(vdev); 153 struct virtio_pci_device *vp_dev = to_vp_device(vdev);
154 /* 0 status means a reset. */ 154 /* 0 status means a reset. */
155 return iowrite8(0, vp_dev->ioaddr + VIRTIO_PCI_STATUS); 155 iowrite8(0, vp_dev->ioaddr + VIRTIO_PCI_STATUS);
156} 156}
157 157
158/* the notify function used when creating a virt queue */ 158/* the notify function used when creating a virt queue */