Commit c64aab41 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: smartpqi: Remove unused functions

This was detected by building the kernel with clang and W=1.

Link: https://lore.kernel.org/r/20210415220826.29438-14-bvanassche@acm.org
Cc: Don Brace <don.brace@microchip.com>
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 11417cd5
...@@ -443,11 +443,6 @@ static inline void pqi_cancel_rescan_worker(struct pqi_ctrl_info *ctrl_info) ...@@ -443,11 +443,6 @@ static inline void pqi_cancel_rescan_worker(struct pqi_ctrl_info *ctrl_info)
cancel_delayed_work_sync(&ctrl_info->rescan_work); cancel_delayed_work_sync(&ctrl_info->rescan_work);
} }
static inline void pqi_cancel_event_worker(struct pqi_ctrl_info *ctrl_info)
{
cancel_work_sync(&ctrl_info->event_work);
}
static inline u32 pqi_read_heartbeat_counter(struct pqi_ctrl_info *ctrl_info) static inline u32 pqi_read_heartbeat_counter(struct pqi_ctrl_info *ctrl_info)
{ {
if (!ctrl_info->heartbeat_counter) if (!ctrl_info->heartbeat_counter)
...@@ -4832,11 +4827,6 @@ static inline int pqi_enable_events(struct pqi_ctrl_info *ctrl_info) ...@@ -4832,11 +4827,6 @@ static inline int pqi_enable_events(struct pqi_ctrl_info *ctrl_info)
return pqi_configure_events(ctrl_info, true); return pqi_configure_events(ctrl_info, true);
} }
static inline int pqi_disable_events(struct pqi_ctrl_info *ctrl_info)
{
return pqi_configure_events(ctrl_info, false);
}
static void pqi_free_all_io_requests(struct pqi_ctrl_info *ctrl_info) static void pqi_free_all_io_requests(struct pqi_ctrl_info *ctrl_info)
{ {
unsigned int i; unsigned int i;
......
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