summaryrefslogtreecommitdiff
path: root/sys/dev/atapiscsi/atapiscsi.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2010-09-20 06:17:50 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2010-09-20 06:17:50 +0000
commit89b7d30bb900859eceeed12811d4f11ce4936fee (patch)
tree62a8f338dd9cbfcdcdceae9fcdfbbff1ce43e01e /sys/dev/atapiscsi/atapiscsi.c
parent9844e20bc88783a482ceaeed5eeebd0daf66d9fc (diff)
Use SSD_ERRCODE_CURRENT instead of magic 0x70.
ok dlg@ matthew@
Diffstat (limited to 'sys/dev/atapiscsi/atapiscsi.c')
-rw-r--r--sys/dev/atapiscsi/atapiscsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c
index 164e5d8e7c7..96abda2308a 100644
--- a/sys/dev/atapiscsi/atapiscsi.c
+++ b/sys/dev/atapiscsi/atapiscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atapiscsi.c,v 1.94 2010/08/04 19:43:52 deraadt Exp $ */
+/* $OpenBSD: atapiscsi.c,v 1.95 2010/09/20 06:17:49 krw Exp $ */
/*
* This code is derived from code with the copyright below.
@@ -480,7 +480,7 @@ atapi_to_scsi_sense(xfer, flags)
xfer->error = XS_SHORTSENSE;
- sense->error_code = SSD_ERRCODE_VALID | 0x70;
+ sense->error_code = SSD_ERRCODE_VALID | SSD_ERRCODE_CURRENT;
sense->flags = (flags >> 4);
WDCDEBUG_PRINT(("Atapi error: %d ", (flags >> 4)), DEBUG_ERRORS);