summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2010-09-22 01:18:58 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2010-09-22 01:18:58 +0000
commit34c87715dd3424febc6cb5524e46e8ac900ecd5b (patch)
treeaa4bca84f8718e9b0a60a04c013600ebe373fd53 /sys/scsi
parentf5d040ac297491ad084c2a984bd5a30ced7e045e (diff)
All users of physio(9) now pass NULL as the buf pointer argument, so
no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/cd.c6
-rw-r--r--sys/scsi/sd.c6
-rw-r--r--sys/scsi/st.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index 4794294541e..7d93b274f5d 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.194 2010/09/21 12:20:53 krw Exp $ */
+/* $OpenBSD: cd.c,v 1.195 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -769,14 +769,14 @@ int
cdread(dev_t dev, struct uio *uio, int ioflag)
{
- return (physio(cdstrategy, NULL, dev, B_READ, cdminphys, uio));
+ return (physio(cdstrategy, dev, B_READ, cdminphys, uio));
}
int
cdwrite(dev_t dev, struct uio *uio, int ioflag)
{
- return (physio(cdstrategy, NULL, dev, B_WRITE, cdminphys, uio));
+ return (physio(cdstrategy, dev, B_WRITE, cdminphys, uio));
}
/*
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index 92dce4f2203..8ff42b8918b 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.216 2010/09/21 12:20:53 krw Exp $ */
+/* $OpenBSD: sd.c,v 1.217 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
@@ -841,13 +841,13 @@ sdminphys(struct buf *bp)
int
sdread(dev_t dev, struct uio *uio, int ioflag)
{
- return (physio(sdstrategy, NULL, dev, B_READ, sdminphys, uio));
+ return (physio(sdstrategy, dev, B_READ, sdminphys, uio));
}
int
sdwrite(dev_t dev, struct uio *uio, int ioflag)
{
- return (physio(sdstrategy, NULL, dev, B_WRITE, sdminphys, uio));
+ return (physio(sdstrategy, dev, B_WRITE, sdminphys, uio));
}
/*
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index 01dde017fb5..ba5d811e631 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.113 2010/09/20 02:51:52 deraadt Exp $ */
+/* $OpenBSD: st.c,v 1.114 2010/09/22 01:18:57 matthew Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -1139,7 +1139,7 @@ stread(dev_t dev, struct uio *uio, int iomode)
return (ENXIO);
}
- return (physio(ststrategy, NULL, dev, B_READ, stminphys, uio));
+ return (physio(ststrategy, dev, B_READ, stminphys, uio));
}
int
@@ -1156,7 +1156,7 @@ stwrite(dev_t dev, struct uio *uio, int iomode)
return (ENXIO);
}
- return (physio(ststrategy, NULL, dev, B_WRITE, stminphys, uio));
+ return (physio(ststrategy, dev, B_WRITE, stminphys, uio));
}
/*