Commit c71a48f9 authored by James Bottomley's avatar James Bottomley

SCSI: fix uninitialised variable warning

Spotted By: Andrew Morton <akpm@osdl.org>

drivers/scsi/scsi_transport_spi.c: In function `spi_dv_retrain':
drivers/scsi/scsi_transport_spi.c:393: warning: `period' might be used uninitialized in this function
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent c8dce76b
......@@ -390,7 +390,7 @@ spi_dv_retrain(struct scsi_request *sreq, u8 *buffer, u8 *ptr,
{
struct spi_internal *i = to_spi_internal(sreq->sr_host->transportt);
struct scsi_device *sdev = sreq->sr_device;
int period, prevperiod = 0;
int period = 0, prevperiod = 0;
for (;;) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment