Commit 4fbebf1a authored by Kevin Barnett's avatar Kevin Barnett Committed by Martin K. Petersen

scsi: smartpqi: minor tweaks to update time support

minor tweaks to update time support
Reviewed-by: default avatarScott Teel <scott.teel@microsemi.com>
Reviewed-by: default avatarScott Benesh <scott.benesh@microsemi.com>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarKevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: default avatarDon Brace <don.brace@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent df7a1fcf
......@@ -588,10 +588,6 @@ static void pqi_update_time_worker(struct work_struct *work)
ctrl_info = container_of(to_delayed_work(work), struct pqi_ctrl_info,
update_time_work);
if (!ctrl_info) {
printk("%s: NULL controller pointer.\n", __func__);
return;
}
rc = pqi_write_current_time_to_host_wellness(ctrl_info);
if (rc)
dev_warn(&ctrl_info->pci_dev->dev,
......@@ -602,9 +598,9 @@ static void pqi_update_time_worker(struct work_struct *work)
}
static inline void pqi_schedule_update_time_worker(
struct pqi_ctrl_info *ctrl_info)
struct pqi_ctrl_info *ctrl_info)
{
schedule_delayed_work(&ctrl_info->update_time_work, 120);
schedule_delayed_work(&ctrl_info->update_time_work, 0);
}
static int pqi_report_luns(struct pqi_ctrl_info *ctrl_info, u8 cmd,
......
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