Author: eadler
Date: Sat Jul  7 17:17:43 2012
New Revision: 238200
URL: http://svn.freebsd.org/changeset/base/238200

Log:
  Remove variables which are initialized but never used thereafter
  reported by gcc46 warning
  
  Reviewed by:  scottl
  Approved by:  cperciva
  MFC after:    1 week

Modified:
  head/sys/cam/scsi/scsi_all.c
  head/sys/cam/scsi/scsi_ch.c

Modified: head/sys/cam/scsi/scsi_all.c
==============================================================================
--- head/sys/cam/scsi/scsi_all.c        Sat Jul  7 17:13:09 2012        
(r238199)
+++ head/sys/cam/scsi/scsi_all.c        Sat Jul  7 17:17:43 2012        
(r238200)
@@ -4147,9 +4147,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: head/sys/cam/scsi/scsi_ch.c
==============================================================================
--- head/sys/cam/scsi/scsi_ch.c Sat Jul  7 17:13:09 2012        (r238199)
+++ head/sys/cam/scsi/scsi_ch.c Sat Jul  7 17:17:43 2012        (r238200)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to