scsi: smartpqi: eliminate redundant error messages
eliminate redundant error message during initialization if the controller has crashed. Reviewed-by: Scott Benesh <scott.benesh@microsemi.com> Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com> Signed-off-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
d91d7820d3
commit
8845fdfa92
@@ -102,8 +102,11 @@ static int sis_wait_for_ctrl_ready_with_timeout(struct pqi_ctrl_info *ctrl_info,
|
||||
if (status & SIS_CTRL_KERNEL_UP)
|
||||
break;
|
||||
}
|
||||
if (time_after(jiffies, timeout))
|
||||
if (time_after(jiffies, timeout)) {
|
||||
dev_err(&ctrl_info->pci_dev->dev,
|
||||
"controller not ready\n");
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
msleep(SIS_CTRL_READY_POLL_INTERVAL_MSECS);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user