diff options
-rw-r--r-- | drivers/scsi/hpsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 6e5e6939ce39..388e229cdcec 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -4142,7 +4142,7 @@ static int hpsa_register_scsi(struct ctlr_info *h) | |||
4142 | static int wait_for_device_to_become_ready(struct ctlr_info *h, | 4142 | static int wait_for_device_to_become_ready(struct ctlr_info *h, |
4143 | unsigned char lunaddr[]) | 4143 | unsigned char lunaddr[]) |
4144 | { | 4144 | { |
4145 | int rc = 0; | 4145 | int rc; |
4146 | int count = 0; | 4146 | int count = 0; |
4147 | int waittime = 1; /* seconds */ | 4147 | int waittime = 1; /* seconds */ |
4148 | struct CommandList *c; | 4148 | struct CommandList *c; |
@@ -4162,6 +4162,7 @@ static int wait_for_device_to_become_ready(struct ctlr_info *h, | |||
4162 | */ | 4162 | */ |
4163 | msleep(1000 * waittime); | 4163 | msleep(1000 * waittime); |
4164 | count++; | 4164 | count++; |
4165 | rc = 0; /* Device ready. */ | ||
4165 | 4166 | ||
4166 | /* Increase wait time with each try, up to a point. */ | 4167 | /* Increase wait time with each try, up to a point. */ |
4167 | if (waittime < HPSA_MAX_WAIT_INTERVAL_SECS) | 4168 | if (waittime < HPSA_MAX_WAIT_INTERVAL_SECS) |