summaryrefslogtreecommitdiffstats
path: root/hw/rdma/vmw
diff options
context:
space:
mode:
authorKamal Heib2019-03-14 16:30:30 +0100
committerMarcel Apfelbaum2019-03-16 14:52:44 +0100
commita421c81148925c31c0515aa9d4c543b34e632cea (patch)
treef095521fd32b89bb8f89a907cc614328cb28d02b /hw/rdma/vmw
parenthw/rdma: Remove unused parameter from rdma_poll_cq() (diff)
downloadqemu-a421c81148925c31c0515aa9d4c543b34e632cea.tar.gz
qemu-a421c81148925c31c0515aa9d4c543b34e632cea.tar.xz
qemu-a421c81148925c31c0515aa9d4c543b34e632cea.zip
hw/rdma: Use {} instead of {0}
Initialize structs with {} instead of {0} to make sure that all code is using the same convention. Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Message-Id: <20190314153031.7197-4-kamalheib1@gmail.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'hw/rdma/vmw')
-rw-r--r--hw/rdma/vmw/pvrdma_cmd.c2
-rw-r--r--hw/rdma/vmw/pvrdma_qp_ops.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/rdma/vmw/pvrdma_cmd.c b/hw/rdma/vmw/pvrdma_cmd.c
index 6d56746357..b682e919d5 100644
--- a/hw/rdma/vmw/pvrdma_cmd.c
+++ b/hw/rdma/vmw/pvrdma_cmd.c
@@ -123,7 +123,7 @@ static int query_port(PVRDMADev *dev, union pvrdma_cmd_req *req,
{
struct pvrdma_cmd_query_port *cmd = &req->query_port;
struct pvrdma_cmd_query_port_resp *resp = &rsp->query_port_resp;
- struct pvrdma_port_attr attrs = {0};
+ struct pvrdma_port_attr attrs = {};
if (cmd->port_num > MAX_PORTS) {
return -EINVAL;
diff --git a/hw/rdma/vmw/pvrdma_qp_ops.c b/hw/rdma/vmw/pvrdma_qp_ops.c
index 508d8fca3c..5b9786efbe 100644
--- a/hw/rdma/vmw/pvrdma_qp_ops.c
+++ b/hw/rdma/vmw/pvrdma_qp_ops.c
@@ -114,7 +114,7 @@ static void pvrdma_qp_ops_comp_handler(void *ctx, struct ibv_wc *wc)
static void complete_with_error(uint32_t vendor_err, void *ctx)
{
- struct ibv_wc wc = {0};
+ struct ibv_wc wc = {};
wc.status = IBV_WC_GENERAL_ERR;
wc.vendor_err = vendor_err;