]> git.baikalelectronics.ru Git - kernel.git/commit
qed: fix assignment of n_rq_elems to incorrect params field
authorColin Ian King <colin.king@canonical.com>
Mon, 27 Jul 2020 14:17:12 +0000 (15:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 19:46:28 +0000 (12:46 -0700)
commit14df87960de66a258aa9b307b7abdea467efcf9b
tree5fa768fd2c366b6417ef276122bf5002f4534de4
parent31c2ea1a115a68be21ccf8e7242089392151602e
qed: fix assignment of n_rq_elems to incorrect params field

Currently n_rq_elems is being assigned to params.elem_size instead of the
field params.num_elems.  Coverity is detecting this as a double assingment
to params.elem_size and reporting this as an usused value on the first
assignment.  Fix this.

Addresses-Coverity: ("Unused value")
Fixes: 99a22d9a119c ("qed: simplify chain allocation with init params struct")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/qedr/verbs.c