mirror of
https://github.com/LIV2/a4091-software.git
synced 2025-12-05 22:12:44 +00:00
Don't leak local variable beyond function scope
Probably harmless, but not a good idea. Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
5fb6890cbc
commit
ce95b739b1
@ -15,6 +15,7 @@ dev_scsi_inquiry(struct IOExtTD *tio, uint unit, scsi_inquiry_data_t *inq)
|
||||
scsi_generic_t cmd;
|
||||
struct SCSICmd scmd;
|
||||
uint lun = unit / 10;
|
||||
BYTE ret;
|
||||
|
||||
#define SCSIPI_INQUIRY_LENGTH_SCSI2 36
|
||||
|
||||
@ -42,7 +43,10 @@ dev_scsi_inquiry(struct IOExtTD *tio, uint unit, scsi_inquiry_data_t *inq)
|
||||
tio->iotd_Req.io_Length = sizeof (scmd);
|
||||
tio->iotd_Req.io_Data = &scmd;
|
||||
|
||||
return (DoIO((struct IORequest *) tio));
|
||||
ret = DoIO((struct IORequest *) tio);
|
||||
tio->iotd_Req.io_Data = NULL;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user