summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorJon Derrick <jonathan.derrick@intel.com>2016-03-08 10:34:54 -0700
committerJens Axboe <axboe@fb.com>2016-03-08 15:01:06 -0700
commit48c7823f42da2bc881ae2e325ed40123871c2fb9 (patch)
tree7812fce3f5881518f47404f3145e2a31aab53619 /drivers/nvme
parentf8b11260a445169989d01df75d35af0f56178f95 (diff)
downloadop-kernel-dev-48c7823f42da2bc881ae2e325ed40123871c2fb9.zip
op-kernel-dev-48c7823f42da2bc881ae2e325ed40123871c2fb9.tar.gz
NVMe: Remove unused sq_head read in completion path
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com> Reviewed-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/pci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 74514c7..e9f18e1 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -134,7 +134,6 @@ struct nvme_queue {
u32 __iomem *q_db;
u16 q_depth;
s16 cq_vector;
- u16 sq_head;
u16 sq_tail;
u16 cq_head;
u16 qid;
@@ -719,7 +718,6 @@ static void __nvme_process_cq(struct nvme_queue *nvmeq, unsigned int *tag)
if ((status & 1) != phase)
break;
- nvmeq->sq_head = le16_to_cpu(cqe.sq_head);
if (++head == nvmeq->q_depth) {
head = 0;
phase = !phase;
OpenPOWER on IntegriCloud