mlx5_core: Variable may be used uninitialized

In the sq_overhead() function, if qp_typ is equal to IB_QPT_RC, size
will be used uninitialized.

Signed-off-by: Andi Shyti <[email protected]>
Acked-by: Eli Cohen <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
Andi Shyti 2013-07-16 15:35:01 +02:00 • committed by Roland Dreier
commit 618af3846b

View file

@ -199,7 +199,7 @@ static int set_rq_size(struct mlx5_ib_dev *dev, struct ib_qp_cap *cap,
static int sq_overhead(enum ib_qp_type qp_type)
{
int size;
int size = 0;
switch (qp_type) {
case IB_QPT_XRC_INI: