diff options
author | ken <ken@FreeBSD.org> | 1998-10-15 17:46:26 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1998-10-15 17:46:26 +0000 |
commit | 8c808a1f97e6f7f7790aa7f3b9d3dbc299319057 (patch) | |
tree | 5140901512c2a8b8bb120f92604d5c3078074a12 /sys | |
parent | 5e2d5257728e6da74957d225fd0a1de28893a3e8 (diff) | |
download | FreeBSD-src-8c808a1f97e6f7f7790aa7f3b9d3dbc299319057.zip FreeBSD-src-8c808a1f97e6f7f7790aa7f3b9d3dbc299319057.tar.gz |
Clean up some unused variables.
Reviewed by: ken
Submitted by: phk
Diffstat (limited to 'sys')
-rw-r--r-- | sys/cam/cam_periph.c | 4 | ||||
-rw-r--r-- | sys/cam/cam_xpt.c | 12 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_cd.c | 6 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_ch.c | 3 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_pass.c | 4 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_pt.c | 4 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_sa.c | 5 |
7 files changed, 8 insertions, 30 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 694bc5e..6d6fe29 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_periph.c,v 1.3 1998/09/29 09:18:08 bde Exp $ + * $Id: cam_periph.c,v 1.4 1998/10/13 21:41:32 ken Exp $ */ #include <sys/param.h> @@ -264,7 +264,6 @@ camperiphnextunit(struct periph_driver *p_drv, u_int newunit, int wired) struct cam_periph *periph; struct cam_periph_config *periph_conf; char *periph_name; - u_int i; int s; s = splsoftcam(); @@ -441,7 +440,6 @@ int cam_periph_lock(struct cam_periph *periph, int priority) { int error; - int s; while ((periph->flags & CAM_PERIPH_LOCKED) != 0) { periph->flags |= CAM_PERIPH_LOCK_WANTED; diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 842db30..f0c25f4 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_xpt.c,v 1.21 1998/10/14 21:17:39 ken Exp $ + * $Id: cam_xpt.c,v 1.22 1998/10/14 22:51:51 ken Exp $ */ #include <sys/param.h> #include <sys/systm.h> @@ -953,7 +953,6 @@ xptioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) int base_periph_found; int splbreaknum; int s; - int i; ccb = (union ccb *)addr; unit = ccb->cgdl.unit_number; @@ -1846,7 +1845,6 @@ xptedtdevicefunc(struct cam_ed *device, void *arg) struct ccb_dev_match *cdm; dev_match_ret retval; - u_int dev_gen; cdm = (struct ccb_dev_match *)arg; @@ -2933,7 +2931,6 @@ xpt_action(union ccb *start_ccb) if ((crs->release_flags & RELSIM_ADJUST_OPENINGS) != 0) { if ((dev->inq_data.flags & SID_CmdQue) != 0) { - int reduction; /* Don't ever go below one opening */ if (crs->openings > 0) { @@ -4729,7 +4726,6 @@ static void xpt_scan_lun(struct cam_periph *periph, struct cam_path *path, cam_flags flags, union ccb *request_ccb) { - u_int32_t unit; cam_status status; struct cam_path *new_path; struct cam_periph *old_periph; @@ -5538,7 +5534,6 @@ static void xpt_config(void *arg) { /* Now that interrupts are enabled, go find our devices */ - struct cam_eb *bus; #ifdef CAMDEBUG /* Setup debugging flags and path */ @@ -5631,11 +5626,6 @@ static void xpt_finishconfig(struct cam_periph *periph, union ccb *done_ccb) { struct periph_driver **p_drv; - struct cam_eb *bus; - struct cam_et *target; - struct cam_ed *dev; - struct cam_periph *nperiph; - struct periph_list *periph_head; int i; if (done_ccb != NULL) { diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index 50d1549..d1f0a4c 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_cd.c,v 1.5 1998/10/07 02:57:57 ken Exp $ + * $Id: scsi_cd.c,v 1.6 1998/10/12 17:02:37 ken Exp $ */ /* * Portions of this driver taken from the original FreeBSD cd driver. @@ -558,7 +558,6 @@ cdasync(void *callback_arg, u_int32_t code, static cam_status cdregister(struct cam_periph *periph, void *arg) { - int s; struct cd_softc *softc; struct ccb_setasync csa; struct ccb_getdev *cgd; @@ -1102,7 +1101,6 @@ cdschedule(struct cam_periph *periph, int priority) static void cdrunchangerqueue(void *arg) { - struct timeval cur_time, busy_time; struct cd_softc *softc; struct cdchanger *changer; int called_from_timeout; @@ -1449,8 +1447,6 @@ cdstart(struct cam_periph *periph, union ccb *start_ccb) struct buf *bp; struct ccb_scsiio *csio; struct scsi_read_capacity_data *rcap; - struct partition *p; - u_int32_t blkno, nblk; int s; softc = (struct cd_softc *)periph->softc; diff --git a/sys/cam/scsi/scsi_ch.c b/sys/cam/scsi/scsi_ch.c index 20c50d9..1f16eb3 100644 --- a/sys/cam/scsi/scsi_ch.c +++ b/sys/cam/scsi/scsi_ch.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_ch.c,v 1.2 1998/10/02 05:25:49 ken Exp $ + * $Id: scsi_ch.c,v 1.3 1998/10/02 21:20:21 ken Exp $ */ /* * Derived from the NetBSD SCSI changer driver. @@ -380,7 +380,6 @@ chasync(void *callback_arg, u_int32_t code, struct cam_path *path, void *arg) static cam_status chregister(struct cam_periph *periph, void *arg) { - int s; struct ch_softc *softc; struct ccb_setasync csa; struct ccb_getdev *cgd; diff --git a/sys/cam/scsi/scsi_pass.c b/sys/cam/scsi/scsi_pass.c index cc29ae4..8d861c2 100644 --- a/sys/cam/scsi/scsi_pass.c +++ b/sys/cam/scsi/scsi_pass.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_pass.c,v 1.1 1998/09/15 06:36:34 gibbs Exp $ + * $Id: scsi_pass.c,v 1.2 1998/09/16 00:11:53 ken Exp $ */ #include <sys/param.h> @@ -306,7 +306,6 @@ passasync(void *callback_arg, u_int32_t code, static cam_status passregister(struct cam_periph *periph, void *arg) { - int s; struct pass_softc *softc; struct ccb_setasync csa; struct ccb_getdev *cgd; @@ -702,7 +701,6 @@ passioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) static int passsendccb(struct cam_periph *periph, union ccb *ccb, union ccb *inccb) { - struct buf *bp[2]; struct pass_softc *softc; struct cam_periph_map_info mapinfo; int error, need_unmap; diff --git a/sys/cam/scsi/scsi_pt.c b/sys/cam/scsi/scsi_pt.c index f07b210..b225d76 100644 --- a/sys/cam/scsi/scsi_pt.c +++ b/sys/cam/scsi/scsi_pt.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: scsi_pt.c,v 1.1 1998/09/15 06:36:34 gibbs Exp $ */ #include <sys/param.h> @@ -176,7 +176,6 @@ ptclose(dev_t dev, int flag, int fmt, struct proc *p) { struct cam_periph *periph; struct pt_softc *softc; - union ccb *ccb; int unit; int error; @@ -318,7 +317,6 @@ ptinit(void) static cam_status ptctor(struct cam_periph *periph, void *arg) { - int s; struct pt_softc *softc; struct ccb_setasync csa; struct ccb_getdev *cgd; diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c index 5e961da..59b213f 100644 --- a/sys/cam/scsi/scsi_sa.c +++ b/sys/cam/scsi/scsi_sa.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi_sa.c,v 1.1 1998/09/15 06:36:34 gibbs Exp $ + * $Id: scsi_sa.c,v 1.2 1998/10/02 05:15:27 ken Exp $ */ #include <sys/param.h> @@ -810,7 +810,6 @@ saasync(void *callback_arg, u_int32_t code, static cam_status saregister(struct cam_periph *periph, void *arg) { - int s; struct sa_softc *softc; struct ccb_setasync csa; struct ccb_getdev *cgd; @@ -1121,7 +1120,7 @@ samount(struct cam_periph *periph) if ((softc->flags & SA_FLAG_TAPE_MOUNTED) == 0) { struct scsi_read_block_limits_data *rblim; - int buff_mode, comp_enabled, comp_supported; + int comp_enabled, comp_supported; u_int8_t write_protect; /* |