git: f25d575762c7 - main - Fix "set but not used" for hptmv
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Dec 2021 18:07:10 UTC
The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=f25d575762c7a4154901f9057e56743e554709cd commit f25d575762c7a4154901f9057e56743e554709cd Author: Scott Long <scottl@FreeBSD.org> AuthorDate: 2021-12-04 18:06:33 +0000 Commit: Scott Long <scottl@FreeBSD.org> CommitDate: 2021-12-04 18:07:04 +0000 Fix "set but not used" for hptmv Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/hptmv/entry.c | 3 --- sys/dev/hptmv/hptproc.c | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/hptmv/entry.c b/sys/dev/hptmv/entry.c index 7fbcb3a16571..d1c6f8185f6c 100644 --- a/sys/dev/hptmv/entry.c +++ b/sys/dev/hptmv/entry.c @@ -2084,10 +2084,7 @@ 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)); } diff --git a/sys/dev/hptmv/hptproc.c b/sys/dev/hptmv/hptproc.c index 90d65250c752..dd4fe8d4fdb2 100644 --- a/sys/dev/hptmv/hptproc.c +++ b/sys/dev/hptmv/hptproc.c @@ -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))); }