From 4edaa9fdf520c1ae1086f241d8dad814ad7f0a2a Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 4 Oct 2023 22:02:10 +0200 Subject: [PATCH] filters: leave device_id_sysfs_dir only for device_id Do not use filters for sysfs with device_id. --- lib/commands/toolcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index 9626dc7a7..250af3f28 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -1229,7 +1229,7 @@ static struct dev_filter *_init_filter_chain(struct cmd_context *cmd) * (currently not used for devs match to device id using syfs) */ if (find_config_tree_bool(cmd, devices_sysfs_scan_CFG, NULL)) { - if ((filters[nr_filt] = sysfs_filter_create(cmd->device_id_sysfs_dir ?: dm_sysfs_dir()))) + if ((filters[nr_filt] = sysfs_filter_create(dm_sysfs_dir()))) nr_filt++; }