diff options
author | eadler <eadler@FreeBSD.org> | 2012-07-07 17:17:43 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-07-07 17:17:43 +0000 |
commit | 30437f51c72d27a21b9a67fc725d296e8ccf1b7c (patch) | |
tree | 4d2bea50212f8b5e8800677599c842caac2aee53 /sys/cam/scsi | |
parent | 250bd816f67905a06150c9922d92f8443a818703 (diff) | |
download | FreeBSD-src-30437f51c72d27a21b9a67fc725d296e8ccf1b7c.zip FreeBSD-src-30437f51c72d27a21b9a67fc725d296e8ccf1b7c.tar.gz |
Remove variables which are initialized but never used thereafter
reported by gcc46 warning
Reviewed by: scottl
Approved by: cperciva
MFC after: 1 week
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r-- | sys/cam/scsi/scsi_all.c | 4 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_ch.c | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c index 5805324..b5a41bb 100644 --- a/sys/cam/scsi/scsi_all.c +++ b/sys/cam/scsi/scsi_all.c @@ -4147,9 +4147,9 @@ scsi_sense_desc_sbuf(struct sbuf *sb, struct scsi_sense_data *sense, struct scsi_inquiry_data *inq_data, struct scsi_sense_desc_header *header) { - int i, found; + int i; - for (i = 0, found = 0; i < (sizeof(scsi_sense_printers) / + for (i = 0; i < (sizeof(scsi_sense_printers) / sizeof(scsi_sense_printers[0])); i++) { struct scsi_sense_desc_printer *printer; diff --git a/sys/cam/scsi/scsi_ch.c b/sys/cam/scsi/scsi_ch.c index a82576f..11ecb32 100644 --- a/sys/cam/scsi/scsi_ch.c +++ b/sys/cam/scsi/scsi_ch.c @@ -433,17 +433,11 @@ static int chclose(struct cdev *dev, int flag, int fmt, struct thread *td) { struct cam_periph *periph; - struct ch_softc *softc; - int error; - - error = 0; periph = (struct cam_periph *)dev->si_drv1; if (periph == NULL) return(ENXIO); - softc = (struct ch_softc *)periph->softc; - cam_periph_release(periph); return(0); |