nvme: consolidate memset calls in the nvme_setup_cmd path
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 29 Oct 2018 23:44:18 +0000 (16:44 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Dec 2018 05:26:55 +0000 (22:26 -0700)
commit1190203555ec58d768ea802e8fdbb5c42187d9d5
treec4a453a5ee01b5115f1698ec9d081cd882179864
parent5938870247be4453ef6602c7ce467bebb48113c8
nvme: consolidate memset calls in the nvme_setup_cmd path

In function nvme_setup_cmd() we call command specific setup function
for flush, rw, and discard. Instead of calling memset in each function
lets call it once in the parent function.

This is purely code cleanup patch and it does not change any existing
functionality.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c