diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-04-13 11:51:57 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-04-13 11:51:57 +0000 |
commit | 14044d83adaff207d096dcab8d43ddaccf16bed3 (patch) | |
tree | a6003c559ff82e14d9468ebdbb471cc4583d8470 /sys | |
parent | 4ae7e3980b03deba0b469e4e765b55f6bac6c82e (diff) |
make nvme_poll return the flags from the completion queue entry
it's still 0 on success, but is the actual bits rather than a mashup of it
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/nvme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 11bfcc7e43c..8212174552b 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvme.c,v 1.18 2016/04/13 11:48:38 dlg Exp $ */ +/* $OpenBSD: nvme.c,v 1.19 2016/04/13 11:51:56 dlg Exp $ */ /* * Copyright (c) 2014 David Gwynne <dlg@openbsd.org> @@ -386,7 +386,7 @@ nvme_poll(struct nvme_softc *sc, struct nvme_queue *q, struct nvme_ccb *ccb, flags = lemtoh16(&state.c.flags); - return (NVME_CQE_SCT(flags) | NVME_CQE_SC(flags)); + return (flags & ~NVME_CQE_PHASE); } void |