Fix "set but not used" for hptmv

Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Scott Long 2021-12-04 11:06:33 -07:00
parent dcf4745271
commit f25d575762
2 changed files with 1 additions and 5 deletions

View File

@ -2084,9 +2084,6 @@ hpt_detach(device_t dev)
static void
hpt_poll(struct cam_sim *sim)
{
IAL_ADAPTER_T *pAdapter;
pAdapter = cam_sim_softc(sim);
hpt_intr_locked((void *)cam_sim_softc(sim));
}

View File

@ -379,7 +379,6 @@ get_disk_name(char *name, PDevice pDev)
static int
hpt_copy_info(HPT_GET_INFO *pinfo, char *fmt, ...)
{
int printfretval;
va_list ap;
if(fmt == NULL) {
@ -389,7 +388,7 @@ hpt_copy_info(HPT_GET_INFO *pinfo, char *fmt, ...)
else
{
va_start(ap, fmt);
printfretval = vsnprintf(hptproc_buffer, sizeof(hptproc_buffer), fmt, ap);
vsnprintf(hptproc_buffer, sizeof(hptproc_buffer), fmt, ap);
va_end(ap);
return(SYSCTL_OUT(pinfo, hptproc_buffer, strlen(hptproc_buffer)));
}