Skip to content

Commit 23ff6ba

Browse files
committed
RDMA/cxgb4: Restore the dropped uninitialized_var
In some configurations even gcc 7 cannot unravel this complexity and still throws a warning. Fixes: 4ab39e2 ("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>
1 parent 528922a commit 23ff6ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/infiniband/hw/cxgb4

‎drivers/infiniband/hw/cxgb4/cq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ static int poll_cq(struct t4_wq *wq, struct t4_cq *cq, struct t4_cqe *cqe,
671671
static int __c4iw_poll_cq_one(struct c4iw_cq *chp, struct c4iw_qp *qhp,
672672
struct ib_wc *wc)
673673
{
674-
struct t4_cqe cqe;
674+
struct t4_cqe uninitialized_var(cqe);
675675
struct t4_wq *wq = qhp ? &qhp->wq : NULL;
676676
u32 credit = 0;
677677
u8 cqe_flushed;

0 commit comments

Comments
 (0)