svn commit: r240047 - stable/9/sys/cam/scsi

Eitan Adler eadler at FreeBSD.org
Sun Sep 2 18:31:23 UTC 2012


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);


More information about the svn-src-all mailing list