diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-09-20 06:17:50 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-09-20 06:17:50 +0000 |
commit | 89b7d30bb900859eceeed12811d4f11ce4936fee (patch) | |
tree | 62a8f338dd9cbfcdcdceae9fcdfbbff1ce43e01e /sys/dev/ata/atascsi.c | |
parent | 9844e20bc88783a482ceaeed5eeebd0daf66d9fc (diff) |
Use SSD_ERRCODE_CURRENT instead of magic 0x70.
ok dlg@ matthew@
Diffstat (limited to 'sys/dev/ata/atascsi.c')
-rw-r--r-- | sys/dev/ata/atascsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c index 6061fa26185..a930193bfb2 100644 --- a/sys/dev/ata/atascsi.c +++ b/sys/dev/ata/atascsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atascsi.c,v 1.94 2010/09/20 06:02:50 dlg Exp $ */ +/* $OpenBSD: atascsi.c,v 1.95 2010/09/20 06:17:49 krw Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -1066,7 +1066,7 @@ atascsi_disk_sense(struct scsi_xfer *xs) bzero(xs->data, xs->datalen); /* check datalen > sizeof(struct scsi_sense_data)? */ - sd->error_code = 0x70; /* XXX magic */ + sd->error_code = SSD_ERRCODE_CURRENT; sd->flags = SKEY_NO_SENSE; atascsi_done(xs, XS_NOERROR); |