]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: simplify nvme_cqe_valid
authorChristoph Hellwig <hch@lst.de>
Fri, 18 May 2018 14:37:04 +0000 (08:37 -0600)
committerKeith Busch <keith.busch@intel.com>
Fri, 18 May 2018 20:41:35 +0000 (14:41 -0600)
commite538d1e94fbe41bd1c9383d88c865ea3f03cf236
tree7d6fdf7b6eb1689be814731f66aa3136c2bf8897
parentdadbccd5f992729bda3fd6375ce4aafbdf8de68c
nvme-pci: simplify nvme_cqe_valid

We always look at the current CQ head and phase, so don't pass these
as separate arguments, and rename the function to nvme_cqe_pending.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c