mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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:
parent
cd23b14b65
commit
618af3846b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue