]> 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)
commitc8b9681c5703b2dbbabbb77c95d21a781da0ca4c
tree5fa768fd2c366b6417ef276122bf5002f4534de4
parent9e7e72b9744cf0b993040a7f224d2b483a2244ce
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: d1fe684e300d ("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