}
/*
- * Redirects ENOENT errors to the parent, if the path is to the queue/
- * sysfs directory. For example
+ * Redirects ENOENT errors to the parent.
+ * For example
*
* /sys/dev/block/8:1/queue/logical_block_size redirects to
* /sys/dev/block/8:0/queue/logical_block_size
{
struct sysfs_blkdev *blk = ul_path_get_dialect(pc);
- if (blk && blk->parent && path && strncmp(path, "queue/", 6) == 0) {
+ if (blk && blk->parent && path) {
*dirfd = ul_path_get_dirfd(blk->parent);
if (*dirfd >= 0) {
DBG(CXT, ul_debugobj(pc, "%s redirected to parent", path));