git: 257078e73387 - stable/13 - stand/userboot: Kill set but unused variables
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:10:09 UTC
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=257078e73387448f3d3c913e92488d2f8bf18b4a commit 257078e73387448f3d3c913e92488d2f8bf18b4a Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-12-16 02:48:40 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-01-24 21:49:19 +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 (cherry picked from commit 7a7a464c7e7d42cd72b1a201c3a3257cb6864ad8) --- 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); }