]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/bnxt_re: Remove a redundant 'memset'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 8 Mar 2020 06:54:42 +0000 (07:54 +0100)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 10 Mar 2020 17:33:21 +0000 (14:33 -0300)
commit24a5b0ce714210c69a8870d4a11ab6a8cff650c6
tree80779cee7bd302a8de8ab98bf5a85a67088efa48
parent32ac9e4399b12d3e54d312a0e0e30ed5cd19bd4e
RDMA/bnxt_re: Remove a redundant 'memset'

'wqe' is already zeroed at the top of the 'while' loop, just a few lines
below, and is not used outside of the loop.

So there is no need to zero it again, or for the variable to be declared
outside the loop.

Link: https://lore.kernel.org/r/20200308065442.5415-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c