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>
Thu, 18 Mar 2021 05:17:26 +0000 (06:17 +0100)
commit643b1c4bf69bed24b018114c1e17396cd9e3b8b6
tree624b59ad84d83b7cfd531fa2e2dd0d925714d5a8
parent37f32393e39f0387753596e93e58634672dc6dee
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