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:
parent
250bd816f6
commit
30437f51c7
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user