summaryrefslogtreecommitdiffstats
path: root/perl-install/modalias.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-18 15:06:11 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-18 15:06:11 +0000
commit782cf2217a9d00abb06c351db439dc8dd6ca870e (patch)
tree71a3621420c4c9d986528374699fa80dea3e3052 /perl-install/modalias.pm
parentd41efa4f9e4ac9198ae754d83e73a6e314518078 (diff)
downloaddrakx-782cf2217a9d00abb06c351db439dc8dd6ca870e.tar
drakx-782cf2217a9d00abb06c351db439dc8dd6ca870e.tar.gz
drakx-782cf2217a9d00abb06c351db439dc8dd6ca870e.tar.bz2
drakx-782cf2217a9d00abb06c351db439dc8dd6ca870e.tar.xz
drakx-782cf2217a9d00abb06c351db439dc8dd6ca870e.zip
slight optimization
Diffstat (limited to 'perl-install/modalias.pm')
-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} ||= {};