diff options
Diffstat (limited to 'sys/dev/isp/isp_target.c')
-rw-r--r-- | sys/dev/isp/isp_target.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_target.c b/sys/dev/isp/isp_target.c index c5c277f0772c..5a31ea766540 100644 --- a/sys/dev/isp/isp_target.c +++ b/sys/dev/isp/isp_target.c @@ -503,11 +503,11 @@ isp_endcmd(ispsoftc_t *isp, ...) ct7_entry_t _ctio7; } un; va_list ap; + int vpidx, nphdl; ISP_MEMZERO(&un, sizeof un); if (IS_24XX(isp)) { - int vpidx, nphdl; at7_entry_t *aep; ct7_entry_t *cto = &un._ctio7; @@ -573,6 +573,9 @@ isp_endcmd(ispsoftc_t *isp, ...) va_start(ap, isp); aep = va_arg(ap, at2_entry_t *); + /* nphdl and vpidx are unused here. */ + nphdl = va_arg(ap, int); + vpidx = va_arg(ap, int); code = va_arg(ap, uint32_t); hdl = va_arg(ap, uint32_t); va_end(ap); |