From 7a7a464c7e7d42cd72b1a201c3a3257cb6864ad8 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 15 Dec 2021 19:48:40 -0700 Subject: [PATCH] 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); }