[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130916.212559.252825159014181091.davem@davemloft.net>
Date: Mon, 16 Sep 2013 21:25:59 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: prarit@...hat.com
Cc: netdev@...r.kernel.org, dledford@...hat.com, amirv@...lanox.com,
ogerlitz@...lanox.com
Subject: Re: [PATCH] net, mellanox mlx4 Fix compile warnings
From: Prarit Bhargava <prarit@...hat.com>
Date: Fri, 13 Sep 2013 08:30:38 -0400
> @@ -2563,7 +2563,7 @@ int mlx4_HW2SW_CQ_wrapper(struct mlx4_dev *dev, int slave,
> {
> int err;
> int cqn = vhcr->in_modifier;
> - struct res_cq *cq;
> + struct res_cq *uninitialized_var(cq);
>
> err = cq_res_start_move_to(dev, slave, cqn, RES_CQ_ALLOCATED, &cq);
> if (err)
This gross annotation is not necessary.
Make cq_res_start_move_to() return 'cq' as an error pointer instead of
setting 'cq' by reference.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists