summaryrefslogtreecommitdiffstats
path: root/sys/scsi/ssc.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-05 19:36:47 +0000
committerbde <bde@FreeBSD.org>1995-12-05 19:36:47 +0000
commit3b8ed31cc351394f67c73f660bc38767e63b66c8 (patch)
tree69eb45d40bb7a87854d6b288fe33c446d01058bf /sys/scsi/ssc.c
parentf69be9bd94e41c900d05090ce86d176c9e9feb07 (diff)
downloadFreeBSD-src-3b8ed31cc351394f67c73f660bc38767e63b66c8.zip
FreeBSD-src-3b8ed31cc351394f67c73f660bc38767e63b66c8.tar.gz
Removed dummy routines sscstrategy(), sscread(), sscwrite() and
sscselect(). Use the standard dummies nostrategy(), noread(), nowrite() and noselect() instead. sscread() and sscwrite() returned bogus errnos. It isn't possible to return an error from a select routine so noselect() is just as bogus as sscselect() (it's equivalent to nullselect()).
Diffstat (limited to 'sys/scsi/ssc.c')
-rw-r--r--sys/scsi/ssc.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/scsi/ssc.c b/sys/scsi/ssc.c
index 87f71f7..d94def1 100644
--- a/sys/scsi/ssc.c
+++ b/sys/scsi/ssc.c
@@ -49,7 +49,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*End copyright
- * $Id: ssc.c,v 1.5 1995/11/29 10:49:03 julian Exp $
+ * $Id: ssc.c,v 1.6 1995/11/29 14:41:03 julian Exp $
*/
#include <sys/types.h>
@@ -116,21 +116,17 @@ int sscioctl(dev_t dev, int cmd, caddr_t data, int fflag, struct proc *p)
return ENXIO;
}
-/* I've elected not to support any of these other entries. There
- * really is no good reason other than I'm not sure how you would use
- * them.
+/*
+ * I've elected not to support any other entries. There really is no
+ * good reason other than I'm not sure how you would use them.
*/
-void sscstrategy(struct buf *bp) { }
-int sscread(dev_t dev, struct uio *uio, int ioflag) { return ENXIO; }
-int sscwrite(dev_t dev, struct uio *uio, int ioflag) { return ENXIO; }
-int sscselect(dev_t dev, int which, struct proc *p) { return ENXIO; }
#ifdef JREMOD
struct cdevsw ssc_cdevsw =
- { sscopen, sscclose, sscread, sscwrite, /*49*/
+ { sscopen, sscclose, noread, nowrite, /*49*/
sscioctl, nostop, nullreset, nodevtotty,/* scsi super */
- sscselect, nxmmap, sscstrategy };
+ noselect, nommap, nostrategy };
static ssc_devsw_installed = 0;
OpenPOWER on IntegriCloud