Date: Sun, 2 Sep 2012 18:31:23 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r240047 - stable/9/sys/cam/scsi Message-ID: <201209021831.q82IVN9w049746@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Sun Sep 2 18:31:23 2012 New Revision: 240047 URL: http://svn.freebsd.org/changeset/base/240047 Log: MFC r238200: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) Modified: stable/9/sys/cam/scsi/scsi_all.c stable/9/sys/cam/scsi/scsi_ch.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/cam/scsi/scsi_all.c ============================================================================== --- stable/9/sys/cam/scsi/scsi_all.c Sun Sep 2 18:28:09 2012 (r240046) +++ stable/9/sys/cam/scsi/scsi_all.c Sun Sep 2 18:31:23 2012 (r240047) @@ -4148,9 +4148,9 @@ scsi_sense_desc_sbuf(struct sbuf *sb, st 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; Modified: stable/9/sys/cam/scsi/scsi_ch.c ============================================================================== --- stable/9/sys/cam/scsi/scsi_ch.c Sun Sep 2 18:28:09 2012 (r240046) +++ stable/9/sys/cam/scsi/scsi_ch.c Sun Sep 2 18:31:23 2012 (r240047) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209021831.q82IVN9w049746>