From 7d69a7b02e270d3bc4c92a557edfec4c06e1f02c Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sat, 27 May 2017 19:27:46 +0000 Subject: nvme: Don't set prp1 for DEL_IOCQ NVM_ADMIN_DEL_IOCQ does not need prp1 (just as NVM_ADMIN_DEL_IOSQ). Remove what is likely a cut'n'paste error from the *_ADD_* code. tested by claudio@ ok jmatthew@ --- sys/dev/ic/nvme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index cc40b229853..8c925af59a2 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvme.c,v 1.56 2017/05/27 12:40:51 sf Exp $ */ +/* $OpenBSD: nvme.c,v 1.57 2017/05/27 19:27:45 sf Exp $ */ /* * Copyright (c) 2014 David Gwynne @@ -1120,7 +1120,6 @@ nvme_q_delete(struct nvme_softc *sc, struct nvme_queue *q) memset(&sqe, 0, sizeof(sqe)); sqe.opcode = NVM_ADMIN_DEL_IOCQ; - htolem64(&sqe.prp1, NVME_DMA_DVA(q->q_sq_dmamem)); htolem16(&sqe.qid, q->q_id); rv = nvme_poll(sc, sc->sc_admin_q, ccb, nvme_sqe_fill); -- cgit v1.2.3