From nobody Thu Dec 16 03:04:24 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3C31218D8DE9; Thu, 16 Dec 2021 03:04:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDxm94M0Zz4XYV; Thu, 16 Dec 2021 03:04:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2514B28693; Thu, 16 Dec 2021 03:04:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BG34OPt055907; Thu, 16 Dec 2021 03:04:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BG34Oku055906; Thu, 16 Dec 2021 03:04:24 GMT (envelope-from git) Date: Thu, 16 Dec 2021 03:04:24 GMT Message-Id: <202112160304.1BG34Oku055906@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 7a7a464c7e7d - main - stand/userboot: Kill set but unused variables List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7a7a464c7e7d42cd72b1a201c3a3257cb6864ad8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639623865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lJm/nzTbX6F+n55HZjUGov1/Tecnd/IMiN3s3Z85i1A=; b=Qelj12k+y+5nV78leec/ImQRqLM/pJg5B11cV/xHf2GFWz19SpS7IE/yj7LzI5Hw/yZxDP akFR6vsa6cDMxfSDwjJsky+5Tfr6aWKlyk819YuQG8V1mD2UlD06JNEjIzWwK+seYGLOSL BmzaiWj3A9LlARy28c444AAeW7IXhqkYgmvznKDnC4gZ0FAUl/BCLs2Pwmd/j9EQpVNG9e 1relPpAlIX31WTkGSdSTO/F+anTNmWnrc+Uq/MS3qmEPmGr6rhGyZAo/X7X7bUYHKdENBN mpux1d+pnGgHxxgj7LFpmxw5tqrWtRucUe5WZbzhmSt4XaWw4HGTh8oVaax1Pw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639623865; a=rsa-sha256; cv=none; b=sz3tjb7XcSojNtoiBERMzrSQZJ5puWA73wL1zBJCMMagL0yxKuWnFUemwuIbtjb+9W0Pig Ko08EYcNoE4nEmGamPQFd/rUiU01sTNkjAKJGVkZBC3yvjmZ1/eV/Zb3AItRf1cgADfQdz xKc0jWOmzn/AuaOLEERcADlOdWml6k8UF+iup3xE1FqqYl/d67tKcjl1i2OJ7Qs2CKfwVB irAaZv9Uh/laarLdnjffNNDdmI+LD6O3iVB8OUPivScM3EzC7VfzbusoBIHPRegWHhXvk3 /TO2WJYY3wi1oVtPo3QdGf55bYV/kLid6U/acXXUvbbGLS7xQYCtWzr7yxXxmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7a7a464c7e7d42cd72b1a201c3a3257cb6864ad8 commit 7a7a464c7e7d42cd72b1a201c3a3257cb6864ad8 Author: Warner Losh AuthorDate: 2021-12-16 02:48:40 +0000 Commit: Warner Losh 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); }