1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Add missing va_end() in fdc_cmd.

0 -> NULL in arguments of fdc_sense_int().

Reminded by:	joerg
This commit is contained in:
Pyun YongHyeon 2005-02-28 05:14:45 +00:00
parent bc8652a15a
commit a7e943a456
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142750

View File

@ -469,6 +469,7 @@ fdc_cmd(struct fdc_data *fdc, int n_out, ...)
"cmd %x failed at out byte %d of %d\n",
cmd, n + 1, n_out);
fdc->flags |= FDC_NEEDS_RESET;
va_end(ap);
return fdc_err(fdc, msg);
}
}
@ -481,9 +482,11 @@ fdc_cmd(struct fdc_data *fdc, int n_out, ...)
"cmd %02x failed at in byte %d of %d\n",
cmd, n + 1, n_in);
fdc->flags |= FDC_NEEDS_RESET;
va_end(ap);
return fdc_err(fdc, msg);
}
}
va_end(ap);
return (0);
}
@ -1877,7 +1880,7 @@ fd_probe(device_t dev)
/* ...wait a moment... */
DELAY(300000);
/* make ctrlr happy: */
fdc_sense_int(fdc, 0, 0);
fdc_sense_int(fdc, NULL, NULL);
}
}
@ -1894,7 +1897,7 @@ fd_probe(device_t dev)
DELAY(i == 0 ? 1000000 : 300000);
/* anything responding? */
if (fdc_sense_int(fdc, &st0, 0) == 0 &&
if (fdc_sense_int(fdc, &st0, NULL) == 0 &&
(st0 & NE7_ST0_EC) == 0)
break; /* already probed succesfully */
}