From nobody Mon Apr 18 11:12:45 2022 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 CE07711CB42B; Mon, 18 Apr 2022 11:12:45 +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 4Khkms5Gl7z3QXs; Mon, 18 Apr 2022 11:12:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650280365; 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=1PgP9HKBqvntV0b1Q338WGm5RQPpmyQOaQoFSeUYeo4=; b=usc6/fJBY+LcUlfNfSSIgsxQ6mh1LlakzvQrHTY7pCVvS2f9J38ZqatGmLxmhb6cKNs5br 3gQb+2KEI2nGlyUR691YxInKIfVRyEdAhznDHQnvbRLl8xz7s1lWpLhNeQNZlGsjKrxLqK 4Z/RVx4IXhzYPxCIc32+vrRaLU74bY5wE4K14qbdehwQfsfrgYHI/sIP3jNtv8fF6cM9pi 8PPgv46HZPusd2ARNEhDOtH6MA82+R5sMfrNrkzaigXbWRNLuUer9UVGTM6LzzBhyj1LOh T+8MSGAYxghataaTUcuqahZn1KyA39F073A4t5LpHefRnjtr4y2B1nTBivBLnQ== 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 8ADCF11A26; Mon, 18 Apr 2022 11:12:45 +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 23IBCjUX053596; Mon, 18 Apr 2022 11:12:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23IBCjkM053595; Mon, 18 Apr 2022 11:12:45 GMT (envelope-from git) Date: Mon, 18 Apr 2022 11:12:45 GMT Message-Id: <202204181112.23IBCjkM053595@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: 647f70e6bf42 - stable/12 - df: remove the unused fstype var 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: se X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 647f70e6bf4213f3a892277fcafe2c36d81aa3a5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650280365; 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=1PgP9HKBqvntV0b1Q338WGm5RQPpmyQOaQoFSeUYeo4=; b=sJDbBiF7tgWUpiS/1WvBo0pwTF05Wz5OgGA4ICHqiiD0PkcMD4Kxy8G7yvgTEOoB1G+Z4P vd/vCX4XGKAQiBlVd1/loL2+U9gbVEzoPYkOoEjLi2+EdR2oLne+7EpFpoWnFBwaPV3+Q4 C+BGAOqyNt1gywtHoBuR94Vo1QdjErdZq8DWFEDnT5zQfp/5G0A/iE73Xq+mt7XYbiEgFs +r4vTemuh9tx3We6+jUa0+giAdDg1AUn+LPrz+SXINE/reGT8i6fElux8BUTWf7nvGMnXQ p2x6VAoCP628ZhyT0t9urA/VJOk0SfkQevVYYOoUa/0qfH3sDIPytrofrB5FHA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650280365; a=rsa-sha256; cv=none; b=V15uG0+8S/+AuZzRd+U63c7Ta5KZBQTF0MhJ7sr7MR5HehnO+L0NcPA7s8wLVxk6y/eFx4 2qtx5OTjU2S4zkNp6aPH3gU5E5sgV8QiqnkfkM+n1k6/pRcqnlIet0iW0B/TAL04+HUGE9 JvApOr6i4sA06ARjbXY6gtihbQLdddXy8jjb4TpZiT0oU8wvVV9nk213X3Gf2Co+fhci1t nqUGYIfT5B7eabIv48LXBqkot8uABoGn6JaAA3+HKJTDzmkvzAw0Kq81/qrW/LzYKfgmqj PDobL3/gZB2IesGgCbBzHI4ALV6hHE7/rccKELhKD5enOvmbJwKGFqCjMmqcMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=647f70e6bf4213f3a892277fcafe2c36d81aa3a5 commit 647f70e6bf4213f3a892277fcafe2c36d81aa3a5 Author: Mateusz Guzik AuthorDate: 2021-07-20 17:00:50 +0000 Commit: Stefan Eßer CommitDate: 2022-04-18 08:44:23 +0000 df: remove the unused fstype var Found with cc --analyze Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 570b31f61009fb60591cf5fcc26f0f5c12ff5752) (cherry picked from commit ede6e97b828dec1bb9aee4e69c2f8b4e437ebef7) --- bin/df/df.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/df/df.c b/bin/df/df.c index ed7d319388cf..4de8c639bc75 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -139,7 +139,6 @@ main(int argc, char *argv[]) int iovlen = 0; #endif - fstype = "ufs"; (void)setlocale(LC_ALL, ""); memset(&maxwidths, 0, sizeof(maxwidths)); memset(&totalbuf, 0, sizeof(totalbuf)); @@ -213,7 +212,6 @@ main(int argc, char *argv[]) xo_errx(1, "-l and -t are mutually exclusive."); if (vfslist != NULL) xo_errx(1, "only one -t option may be specified"); - fstype = optarg; vfslist = makevfslist(optarg); break; case 'T':