]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit750dde4472e48eadf28221b7eb02d493db1bcfd0
tree7d6fdf7b6eb1689be814731f66aa3136c2bf8897
parent287a63ebbe7c0c1e1c16f7462b4129edf5cd08df
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