diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2007-12-30 13:37:31 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:29:15 -0500 |
commit | 32e8ae36b8f80372015b88b63c4358a376c9af0f (patch) | |
tree | 9a7211c761b0476216eaf24f0aebd7ced7945a37 /include | |
parent | 2d507a01dac338831266b44ccbb01c69e84606ed (diff) |
[SCSI] libsas: don't use made up error codes
This is bad for two reasons:
1. If they're returned to outside applications, no-one knows what
they mean.
2. Eventually they'll clash with the ever expanding standard error
codes.
The problem error code in question is ETASK. I've replaced this by
ECOMM (communications error on send) a network error code that seems to
most closely relay what ETASK meant.
Acked-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/libsas.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index 93248cd48373..a075f130303c 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -91,8 +91,6 @@ enum discover_event { | |||
91 | 91 | ||
92 | /* ---------- Expander Devices ---------- */ | 92 | /* ---------- Expander Devices ---------- */ |
93 | 93 | ||
94 | #define ETASK 0xFA | ||
95 | |||
96 | #define to_dom_device(_obj) container_of(_obj, struct domain_device, dev_obj) | 94 | #define to_dom_device(_obj) container_of(_obj, struct domain_device, dev_obj) |
97 | #define to_dev_attr(_attr) container_of(_attr, struct domain_dev_attribute,\ | 95 | #define to_dev_attr(_attr) container_of(_attr, struct domain_dev_attribute,\ |
98 | attr) | 96 | attr) |