git: 6ea301ef77d5 - stable/13 - linsysfs: plug set-but-not-used vars.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:38:59 UTC
The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=6ea301ef77d5ae35bba423d7f8e22384e5bff74f commit 6ea301ef77d5ae35bba423d7f8e22384e5bff74f Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2022-03-31 20:49:26 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> 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);