nvme-pci: simplify nvme_cqe_valid
authorChristoph Hellwig <hch@lst.de>
Fri, 18 May 2018 14:37:04 +0000 (08:37 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 May 2018 14:37:04 +0000 (08:37 -0600)
commitab3f8032c3c7fa5039a61b1acd767d828e3b554a
treed7f054156a94d36be9c3c822b4e52c3aa571e229
parente36d3b20aaaacee58446ab7a878758bbf92248e8
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