summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/modalias.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/modalias.pm b/perl-install/modalias.pm
index 516a2dd01..86d2f0603 100644
--- a/perl-install/modalias.pm
+++ b/perl-install/modalias.pm
@@ -43,8 +43,8 @@ sub parse_path {
} elsif (-f $path) {
foreach (cat_($path)) {
if (my ($alias, $class, $module) = $_ =~ $alias_re) {
- my ($vendor, $device) = alias_to_ids($alias);
if (member($class, @classes)) {
+ my ($vendor, $device) = alias_to_ids($alias);
if ($vendor) {
$group->{$class} ||= {};
$group->{$class}{$vendor} ||= {};