mlx5_core: Variable may be used uninitialized
authorAndi Shyti <andi@etezian.org>
Tue, 16 Jul 2013 13:35:01 +0000 (15:35 +0200)
committerRoland Dreier <roland@purestorage.com>
Wed, 31 Jul 2013 21:12:33 +0000 (14:12 -0700)
commit618af3846be1d29118b00529e68971e8c95d5b72
tree3df408ff0457b31294ef2fff5c6c28290307ee2d
parentcd23b14b654769db83c9684ae1ba32c0e066670f
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 <andi@etezian.org>
Acked-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/qp.c