OSDN Git Service

nvme-fabrics: use consistent zeroout pattern
authorChaitanya Kulkarni <kch@nvidia.com>
Wed, 12 Jan 2022 06:20:57 +0000 (22:20 -0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 28 Feb 2022 11:45:04 +0000 (13:45 +0200)
commit72b3eab456ba57bf933b25e1b2adea3e3eafd153
treec42d86cd99bd4ebe69008ddfb850098306af903f
parent0801a4b630ab0949ddf0fc3f26cb17976e2d3afb
nvme-fabrics: use consistent zeroout pattern

Remove zeroout memeset call & zeroout local variable cmd at the time
of declaration in nvmf_ref_read32() similar to what we have done in
nvmf_reg_read64(), nvmf_reg_write32(), nvmf_connect_admin_queue(), and
nvmf_connect_io_queue().

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c