summaryrefslogtreecommitdiffstats
path: root/hw/rdma/vmw/pvrdma_main.c
diff options
context:
space:
mode:
authorYuval Shaia2018-12-21 15:40:20 +0100
committerMarcel Apfelbaum2018-12-22 10:09:56 +0100
commitf00c48caab0360240ed5efd7df5245a6fa031a07 (patch)
treeeee8d7e56b9b43d1f2770bdeae5cc1f55db7e8b1 /hw/rdma/vmw/pvrdma_main.c
parenthw/rdma: Add support for MAD packets (diff)
downloadqemu-f00c48caab0360240ed5efd7df5245a6fa031a07.tar.gz
qemu-f00c48caab0360240ed5efd7df5245a6fa031a07.tar.xz
qemu-f00c48caab0360240ed5efd7df5245a6fa031a07.zip
hw/pvrdma: Make function reset_device return void
This function cannot fail - fix it to return void Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'hw/rdma/vmw/pvrdma_main.c')
-rw-r--r--hw/rdma/vmw/pvrdma_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/rdma/vmw/pvrdma_main.c b/hw/rdma/vmw/pvrdma_main.c
index 6c8c0154fa..fc2abd34af 100644
--- a/hw/rdma/vmw/pvrdma_main.c
+++ b/hw/rdma/vmw/pvrdma_main.c
@@ -369,13 +369,11 @@ static int unquiesce_device(PVRDMADev *dev)
return 0;
}
-static int reset_device(PVRDMADev *dev)
+static void reset_device(PVRDMADev *dev)
{
pvrdma_stop(dev);
pr_dbg("Device reset complete\n");
-
- return 0;
}
static uint64_t regs_read(void *opaque, hwaddr addr, unsigned size)