The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7a7a464c7e7d42cd72b1a201c3a3257cb6864ad8
commit 7a7a464c7e7d42cd72b1a201c3a3257cb6864ad8 Author: Warner Losh <[email protected]> AuthorDate: 2021-12-16 02:48:40 +0000 Commit: Warner Losh <[email protected]> CommitDate: 2021-12-16 02:48:40 +0000 stand/userboot: Kill set but unused variables We never use 'dev' after fetching it from the varargs list. Skip the whole bother of fetching it, or setting up the meachinery to fetch it. Sponsored by: Netflix --- stand/userboot/userboot/host.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stand/userboot/userboot/host.c b/stand/userboot/userboot/host.c index c9ac01576e82..20952983e0d1 100644 --- a/stand/userboot/userboot/host.c +++ b/stand/userboot/userboot/host.c @@ -135,12 +135,6 @@ host_dev_print(int verbose) static int host_dev_open(struct open_file *f, ...) { - va_list args; - struct devdesc *dev; - - va_start(args, f); - dev = va_arg(args, struct devdesc*); - va_end(args); return (0); }
