diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-10 21:03:16 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-11 04:58:28 +0200 |
commit | 23ff6ba8feec5c4bdf993af3fba3937d57883dc8 (patch) | |
tree | f57db593345ba2ae6d98a324e5418c143113b7a3 | |
parent | IB: Enable uverbs_destroy_def_handler to be used by drivers (diff) | |
download | linux-23ff6ba8feec5c4bdf993af3fba3937d57883dc8.tar.xz linux-23ff6ba8feec5c4bdf993af3fba3937d57883dc8.zip |
RDMA/cxgb4: Restore the dropped uninitialized_var
In some configurations even gcc 7 cannot unravel this complexity and still
throws a warning.
Fixes: 4ab39e2f98f2 ("RDMA/cxgb4: Make c4iw_poll_cq_one() easier to analyze")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c index a5280d8d002f..a3a829951ac4 100644 --- a/drivers/infiniband/hw/cxgb4/cq.c +++ b/drivers/infiniband/hw/cxgb4/cq.c @@ -671,7 +671,7 @@ skip_cqe: static int __c4iw_poll_cq_one(struct c4iw_cq *chp, struct c4iw_qp *qhp, struct ib_wc *wc) { - struct t4_cqe cqe; + struct t4_cqe uninitialized_var(cqe); struct t4_wq *wq = qhp ? &qhp->wq : NULL; u32 credit = 0; u8 cqe_flushed; |