From: Jon Derrick Date: Tue, 8 Mar 2016 17:34:54 +0000 (-0700) Subject: NVMe: Remove unused sq_head read in completion path X-Git-Tag: v4.1.12-102.0.20170601_1400~109 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4f3b23d1b8a4f93b11cf237129cea0dea32247cf;p=users%2Fjedix%2Flinux-maple.git NVMe: Remove unused sq_head read in completion path Signed-off-by: Jon Derrick Reviewed-by: Sagi Grimberg Signed-off-by: Jens Axboe (cherry picked from commit 48c7823f42da2bc881ae2e325ed40123871c2fb9) Orabug: 25130845 Signed-off-by: Ashok Vairavan Reviewed-by: Martin K. Petersen --- diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 29b14da99363..e53b63a1b86e 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -147,7 +147,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; @@ -803,7 +802,6 @@ static int nvme_process_cq(struct nvme_queue *nvmeq) if ((status & 1) != phase) break; - nvmeq->sq_head = le16_to_cpu(cqe.sq_head); if (++head == nvmeq->q_depth) { head = 0; phase = !phase;