forked from Minki/linux
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>
This commit is contained in:
parent
cd23b14b65
commit
618af3846b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user