aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/nvme.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/nvme.c')
-rw-r--r--drivers/block/nvme.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c
index 740a9c1b81aa..d4f95eb51dc1 100644
--- a/drivers/block/nvme.c
+++ b/drivers/block/nvme.c
@@ -245,7 +245,6 @@ static int nvme_submit_cmd(struct nvme_queue *nvmeq, struct nvme_command *cmd)
245{ 245{
246 unsigned long flags; 246 unsigned long flags;
247 u16 tail; 247 u16 tail;
248 /* XXX: Need to check tail isn't going to overrun head */
249 spin_lock_irqsave(&nvmeq->q_lock, flags); 248 spin_lock_irqsave(&nvmeq->q_lock, flags);
250 tail = nvmeq->sq_tail; 249 tail = nvmeq->sq_tail;
251 memcpy(&nvmeq->sq_cmds[tail], cmd, sizeof(*cmd)); 250 memcpy(&nvmeq->sq_cmds[tail], cmd, sizeof(*cmd));