Remove variables which are initialized but never used thereafter

reported by gcc46 warning

Reviewed by:	scottl
Approved by:	cperciva
MFC after:	1 week
This commit is contained in:
Eitan Adler 2012-07-07 17:17:43 +00:00
parent 7f489a9679
commit 3743101f93
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238200
2 changed files with 2 additions and 8 deletions

View File

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

View File

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