diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-07-31 11:31:31 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-07-31 11:31:31 +0000 |
commit | 1feaf09695ab40818251752c8ef519703c44f6c7 (patch) | |
tree | f5c0c2685bd39f1caa800337880139e06e9cfcb0 /sys/scsi/scsiconf.c | |
parent | c46066733583cea787f0bcda85d72c2a6ed37c03 (diff) |
Remove scsi_change_def() and related command structure. Its only use
in the tree is #ifdef'd out and is fundamentally wrong anyway - it
tries to force *all* devices to SCSI-2. Also recent SCSI specs seem to
have marked the command as obsolete. Bonus - eliminates another
undocumented option (SCSI_2_DEF).
Found in a list of unused kernel functions posted to tech-kern@netbsd
by Krister Walfridsson in 2002.
ok marco@ tdeval@
Diffstat (limited to 'sys/scsi/scsiconf.c')
-rw-r--r-- | sys/scsi/scsiconf.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 2c8cb75494c..3d39c8b7455 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.91 2004/05/09 14:08:11 krw Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.92 2004/07/31 11:31:30 krw Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -655,12 +655,6 @@ scsi_probedev(scsi, inqbuflun0, target, lun) } #endif -#ifdef SCSI_2_DEF - /* Some devices need to be told to go to SCSI2. */ - /* However some just explode if you tell them this... leave it out. */ - scsi_change_def(sc_link, scsi_autoconf | SCSI_SILENT); -#endif /* SCSI_2_DEF */ - /* Now go ask the device all about itself. */ rslt = scsi_inquire(sc_link, &inqbuf, scsi_autoconf | SCSI_SILENT); if (rslt != 0) { |