nvme: reduce checks for zero command effects
authorKanchan Joshi <joshi.k@samsung.com>
Mon, 8 Mar 2021 19:18:04 +0000 (00:48 +0530)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Apr 2021 16:48:26 +0000 (18:48 +0200)
commit18479ddb7fd5fd0994bd10a95618bf866713a11b
treee711894833be7c8fa961d88ac5fcd5a9a46574cf
parent2bd643079ec1c44fac66838c27b993b78e8930a7
nvme: reduce checks for zero command effects

For passthrough I/O commands, effects are usually to be zero.
nvme_passthrough_end() does three checks in futility for this case.
Bail out of function-call/checks.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c