]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit610071f04238528141824461c53952e23bd54002
treee711894833be7c8fa961d88ac5fcd5a9a46574cf
parente23ba7cb2a92e9480ae8c7c2d29c4386aa192414
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