summaryrefslogtreecommitdiff
path: root/sys/scsi/sdvar.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-10-23 13:50:51 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-10-23 13:50:51 +0000
commitdb1718ae77c3ceb72c00adf6b750068797715425 (patch)
tree68aacf8f826b6cb8f535827db205106149ea13fb /sys/scsi/sdvar.h
parent4d6c2a96e91eadebb5073d8a4a76e6d5c3fcd5d9 (diff)
There used to be three possible return values from sd_get_parms(), but
for some years it's been a succeed/fail function. So switch to using 0/-1 as return values and nuke SDGP_RESULT_OFFLINE and SDGP_RESULT_OK #defines. Shake out logic inside sd_get_parms() to take account of the change, making it clearer. Removes a possible panic().
Diffstat (limited to 'sys/scsi/sdvar.h')
-rw-r--r--sys/scsi/sdvar.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/scsi/sdvar.h b/sys/scsi/sdvar.h
index 333239d5774..6cd99951394 100644
--- a/sys/scsi/sdvar.h
+++ b/sys/scsi/sdvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdvar.h,v 1.43 2019/09/27 23:07:42 krw Exp $ */
+/* $OpenBSD: sdvar.h,v 1.44 2019/10/23 13:50:50 krw Exp $ */
/* $NetBSD: sdvar.h,v 1.7 1998/08/17 00:49:03 mycroft Exp $ */
/*-
@@ -77,9 +77,5 @@ struct sd_softc {
struct scsi_xshandler sc_xsh;
};
-
-#define SDGP_RESULT_OK 0 /* parameters obtained */
-#define SDGP_RESULT_OFFLINE 1 /* no media, or otherwise losing */
-
#endif /* _KERNEL */
#endif /* _SCSI_SDVAR_H */