diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-12-15 16:14:14 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-12-15 16:14:14 +0100 |
commit | 3c1898863fbf9c94cfb0258ae380b67b44c4b466 (patch) | |
tree | f5671df4da5de8c33ddb55dd554383ad73151270 /libudev/libudev-enumerate.c | |
parent | ac9b4baac52d8713512629272384124fa1d01b23 (diff) |
remove remaining support for CONFIG_SYSFS_DEPRECATED
Diffstat (limited to 'libudev/libudev-enumerate.c')
-rw-r--r-- | libudev/libudev-enumerate.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libudev/libudev-enumerate.c b/libudev/libudev-enumerate.c index 186abb927e..2fcd348296 100644 --- a/libudev/libudev-enumerate.c +++ b/libudev/libudev-enumerate.c @@ -685,18 +685,6 @@ int udev_enumerate_scan_devices(struct udev_enumerate *udev_enumerate) scan_dir(udev_enumerate, "bus", "devices", NULL); dbg(udev, "searching '/class/*' dir\n"); scan_dir(udev_enumerate, "class", NULL, NULL); - /* if block isn't a class, scan /block/ */ - util_strscpyl(base, sizeof(base), udev_get_sys_path(udev), "/class/block", NULL); - if (stat(base, &statbuf) != 0) { - if (match_subsystem(udev_enumerate, "block")) { - dbg(udev, "searching '/block/*' dir\n"); - /* scan disks */ - scan_dir_and_add_devices(udev_enumerate, "block", NULL, NULL); - /* scan partitions */ - dbg(udev, "searching '/block/*/*' dir\n"); - scan_dir(udev_enumerate, "block", NULL, "block"); - } - } } return 0; } |