From nobody Wed Feb 15 23:04:31 2023 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 4PHDDH4f0Mz3rSjQ; Wed, 15 Feb 2023 23:04:31 +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 4PHDDH3w2Gz3r9k; Wed, 15 Feb 2023 23:04:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676502271; 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=mlt4Zkeshkf+IIUF9JjJuRhlMLa9P5lmgceraV2BzLk=; b=yc/NgdfVaxJyww1MrMy6NJG1vU+lt2xDUwdV+NlzvV8AVQZxq0l8ycohXirA1Y+WUE97r4 BrdOdtGDiwudWZr+AS2tgnXi7vn+bd86vLBckiBLEYtwdnDtsHDESEDiCEq/ewa0wfUBDx 22GlhJlf/ZvWeUpvxQyb8LtuAeh1OdH8akIr+dmxHIQgfhsGtcJ+LQBxlChBy2NDD8zy8J faiF8sRJnhnDUqi5EsEQDi5KZ5/V9zk2tJNqNC90ZQPUxIeoDzsR+g4BRHUC9csRgteFTm xVoCer1tTBpG+KZOUQKqRBCnioHmw0RzWWleGX8vQ+41FIqgfRxflfzBpgTf8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676502271; 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=mlt4Zkeshkf+IIUF9JjJuRhlMLa9P5lmgceraV2BzLk=; b=awVIjRijNCLbmvZcdi+6sF1ixoSaRkciNzLC6rye4iumWl9cOorjFD44/7H4fBbnYaeqpW /uP4kDUmHNntewX2jn9InZcpU61mQdKK5G9tjTVDbKo0yMZEx1+JaEe3lmTn1UWED561Ze qomnr3E4OW+sPm0wYIPWyW0KHhmiIWJXJQ7S/k55nRhMPDjV8qwvBQDjaDFL/QjRiWPDPf Ep0ofxfgj4xmJAcoaIgy8rNlBENqWwyiMxjQPNiitn/eWSh/ktkT0a8RYffMHYYOkFPWZj bqXrA5j7Rq4AI1KNZ26yMQPJgbLnOVgPJyiJA6Rs+ZBUP0vrREzfsl+BJN2ovA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676502271; a=rsa-sha256; cv=none; b=xzx1oGJtx/kDXL2Q2NI3eJwvqv6y0SNFm00nG75dqxXNkStI5rJ+hTVIyPDRZv/GvH3Mue 8uHVM7hV+VVhPEH3wTtvDY0DR3ztKXlQcfF87aneVOxNu7XDJwppa/C80+kMeQZ3pwJ2mQ u/xl1nEFuNwXcMLeoHCJPcIp/RPcuvh3GXvjeFTO6sEOcn0s2thcOcSpyNF+g3Vu5W0w3/ m2MAukI805bsn30CygdBaw4WiK8hhDPiYB7knzgs7TN3gXFtTD3tsmWRxRpg8tXOURuVuT 9BA260YKK37e7L5QZKQV2rVE+3YelIFcAUHAEx+LAQ7Rb5ZetmRfOBSSMvMi/g== 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 4PHDDH2rbmzhRG; Wed, 15 Feb 2023 23:04:31 +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 31FN4VkU051315; Wed, 15 Feb 2023 23:04:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31FN4VgX051314; Wed, 15 Feb 2023 23:04:31 GMT (envelope-from git) Date: Wed, 15 Feb 2023 23:04:31 GMT Message-Id: <202302152304.31FN4VgX051314@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: 547fb1426cec - main - efidp: Remove write only variable 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: 547fb1426cecf097a7eae023eb8a0fbde733178b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=547fb1426cecf097a7eae023eb8a0fbde733178b commit 547fb1426cecf097a7eae023eb8a0fbde733178b Author: Warner Losh AuthorDate: 2023-02-15 23:03:02 +0000 Commit: Warner Losh CommitDate: 2023-02-15 23:03:54 +0000 efidp: Remove write only variable Sponsored by: Netflix --- usr.sbin/efidp/efidp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/efidp/efidp.c b/usr.sbin/efidp/efidp.c index aef154112d66..967694024380 100644 --- a/usr.sbin/efidp/efidp.c +++ b/usr.sbin/efidp/efidp.c @@ -169,14 +169,13 @@ efi_to_unix(void) char buffer[MAXSIZE]; char dpbuf[MAXSIZE]; efidp dp; - size_t dplen; char *walker, *dev, *relpath, *abspath; int rv; dp = (efidp)dpbuf; while (fgets(buffer, sizeof(buffer), stdin)) { walker= trim(buffer); - dplen = efidp_parse_device_path(walker, dp, sizeof(dpbuf)); + efidp_parse_device_path(walker, dp, sizeof(dpbuf)); rv = efivar_device_path_to_unix_path(dp, &dev, &relpath, &abspath); if (rv == 0) printf("%s:%s %s\n", dev, relpath, abspath);