Le mercredi 26 mars 2014 à 18:53 +0530, Hariprasad Shenai a écrit :
> From: Steve Wise <[email protected]>
> 

What for ? Please describe the reason to use uninitialized_var()


> Signed-off-by: Steve Wise <[email protected]>
> ---
>  drivers/infiniband/hw/cxgb4/cq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/infiniband/hw/cxgb4/cq.c 
> b/drivers/infiniband/hw/cxgb4/cq.c
> index e17b155..cfaa56a 100644
> --- a/drivers/infiniband/hw/cxgb4/cq.c
> +++ b/drivers/infiniband/hw/cxgb4/cq.c
> @@ -672,7 +672,7 @@ skip_cqe:
>  static int c4iw_poll_cq_one(struct c4iw_cq *chp, struct ib_wc *wc)
>  {
>       struct c4iw_qp *qhp = NULL;
> -     struct t4_cqe cqe = {0, 0}, *rd_cqe;
> +     struct t4_cqe uninitialized_var(cqe), *rd_cqe;
>       struct t4_wq *wq;
>       u32 credit = 0;
>       u8 cqe_flushed;


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to