]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7f7040fcbac13031c6d75eae3f68613961f1a48
treec4a453a5ee01b5115f1698ec9d081cd882179864
parent99a7d979cf1645025181ac60f63e27b555942e11
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