diff options
Diffstat (limited to 'lib/device/dev-cache.c')
-rw-r--r-- | lib/device/dev-cache.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index c3f7c49be..4e435cf70 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -1422,17 +1422,9 @@ const char *dev_name_confirmed(struct device *dev, int quiet) return dev_name(dev); } -/* Provide a custom reason when a device is ignored */ -const char *dev_cache_filtered_reason(const char *name) +struct device *dev_hash_get(const char *name) { - const char *reason = "not found"; - struct device *d = (struct device *) dm_hash_lookup(_cache.names, name); - - if (d) - /* FIXME Record which filter caused the exclusion */ - reason = "excluded by a filter"; - - return reason; + return (struct device *) dm_hash_lookup(_cache.names, name); } struct device *dev_cache_get(struct cmd_context *cmd, const char *name, struct dev_filter *f) @@ -1656,4 +1648,3 @@ bool dev_cache_has_md_with_end_superblock(struct dev_types *dt) return false; } - |