From nobody Fri Jun 17 19:38:59 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 A23D185BC84; Fri, 17 Jun 2022 19:38:59 +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 4LPq9H2yn1z3Qvc; Fri, 17 Jun 2022 19:38:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494739; 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=5e8GkVt5c0JsQ/GHZ19pG54myXJ6iT855i5PTuLtwrE=; b=x044EvUWKQbMAXpJ2tGwTcLI6z57HI6bCIt7t9hceo+OwaZJUvI7e5FGYoO4pri7edONBh PD/w8EeI+31sbHwJN+sciLy8ShhQ1YxWtQaxV1HN4j2yX9AZ4W+1rWM9Ar7xv3+6VCyle5 cDEKhoLgY0AGJzzPoGTHa2RpdSNPRETvqgvh2PK/iVfT5YZlw9k3QNypQ9I/71c1larxuc xc8RgcZ7nP54vdnkkeyHj88KFnilQkEKs4GivCtqVbplgKpG4Y1Drs4mI80+DjmMofC+/T drogk91EOdFq4iCwnFiAVs8FCXnkGA0FwaKp4u4fCfMJ0hMFDkPAXY9fa2dz5w== 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 337A425D0A; Fri, 17 Jun 2022 19:38:59 +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 25HJcxl2015403; Fri, 17 Jun 2022 19:38:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJcxYI015402; Fri, 17 Jun 2022 19:38:59 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:38:59 GMT Message-Id: <202206171938.25HJcxYI015402@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 6ea301ef77d5 - stable/13 - linsysfs: plug set-but-not-used vars. 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: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6ea301ef77d5ae35bba423d7f8e22384e5bff74f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494739; 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=5e8GkVt5c0JsQ/GHZ19pG54myXJ6iT855i5PTuLtwrE=; b=NYFElqwkDY/0x/etkFOwTjAx4IDp+vYfgGSTEJ3eSu1gHcmMMIaywhWLgt2yCttUY5pLZ/ Hm8IruzYdjlgmM48jSXKvxv5QD+IG3aY95VC2aiW4/8vLrQEzgnuzBe4jTHB0b7JNtXhgg tPGzh7XLH76jAueQbaE1ZzJDzZGCXpv2gGYOVZBnInBOHpEqwv3ndtadJnClET9QCGFfSS IOymnr9xoQo0cN75YA/Yf9sYmTmyypmEaqS/O/6M9/Nt6YCNBHJmqp8XbweI5XEH879/eB vyPrMs6nPu9w3wKkLponwb/ZFdx+ZNePcqKLxsc7giRFEw7RKDQ5EUujbIglmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494739; a=rsa-sha256; cv=none; b=vex0T74USFBzXu8PQ/L1l1Wxk1IEIIVqeghhPzPSJn7qTYzERjqIHU9+x6Qlqc2kN+3rRL tpeKvVAzEKwc4AhBuJZFX8o4evEU9mg11EWD4epvn8Azozk0nGsa87CuaMd18aFKuKa1cA Tmuwzc/e3c2ISjYSBRlBdIYMvgZ5Ti4uxiOlna6hFbbi5xs8snm+ADbvbPw4zn/xAsphLm ujz6Q7VelqCgY6slRclcLapd4B7/kx1qVELee3LDXJGCrw/vox9gklStxawJPpMD4maYOx sRoLWzWYrqwI90j7I1vKdcGJMx8gbr20/rU3IvS+aCN02FF4SLWh2VscYGzq3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=6ea301ef77d5ae35bba423d7f8e22384e5bff74f commit 6ea301ef77d5ae35bba423d7f8e22384e5bff74f Author: Dmitry Chagin AuthorDate: 2022-03-31 20:49:26 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:33:49 +0000 linsysfs: plug set-but-not-used vars. MFC after: 2 weeks (cherry picked from commit bafe3b8804ca1450584191ae8689c1c0abeea68d) --- sys/compat/linsysfs/linsysfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/compat/linsysfs/linsysfs.c b/sys/compat/linsysfs/linsysfs.c index 8d3be1507de9..9ec066ac34c4 100644 --- a/sys/compat/linsysfs/linsysfs.c +++ b/sys/compat/linsysfs/linsysfs.c @@ -622,10 +622,8 @@ linsysfs_init(PFS_INIT_ARGS) struct pfs_node *pci; struct pfs_node *scsi; struct pfs_node *net; - struct pfs_node *power_supply; struct pfs_node *devdir, *chardev; struct pfs_node *kernel; - struct pfs_node *debug; devclass_t devclass; device_t dev; @@ -640,7 +638,7 @@ linsysfs_init(PFS_INIT_ARGS) class = pfs_create_dir(root, "class", NULL, NULL, NULL, 0); scsi = pfs_create_dir(class, "scsi_host", NULL, NULL, NULL, 0); drm = pfs_create_dir(class, "drm", NULL, NULL, NULL, 0); - power_supply = pfs_create_dir(class, "power_supply", NULL, NULL, NULL, 0); + pfs_create_dir(class, "power_supply", NULL, NULL, NULL, 0); /* /sys/class/net/.. */ net = pfs_create_dir(class, "net", NULL, NULL, NULL, 0); @@ -680,7 +678,7 @@ linsysfs_init(PFS_INIT_ARGS) /* /sys/kernel */ kernel = pfs_create_dir(root, "kernel", NULL, NULL, NULL, 0); /* /sys/kernel/debug, mountpoint for lindebugfs. */ - debug = pfs_create_dir(kernel, "debug", NULL, NULL, NULL, 0); + pfs_create_dir(kernel, "debug", NULL, NULL, NULL, 0); /* /sys/subsystem/... */ dir = pfs_create_dir(root, "subsystem", NULL, NULL, NULL, 0);