summaryrefslogtreecommitdiffstats
path: root/MDV
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-02-12 14:23:36 +0000
committerThierry Vignaud <tv@mandriva.org>2007-02-12 14:23:36 +0000
commit07ec02ebea0016e0caf8c5d87303541dfbfae0e4 (patch)
tree4394e4142499bf3470cff2c00c13e011b814e5a7 /MDV
parent016063aa96cdbd442dfc03d7828676fe11a9123b (diff)
downloadldetect-07ec02ebea0016e0caf8c5d87303541dfbfae0e4.tar
ldetect-07ec02ebea0016e0caf8c5d87303541dfbfae0e4.tar.gz
ldetect-07ec02ebea0016e0caf8c5d87303541dfbfae0e4.tar.bz2
ldetect-07ec02ebea0016e0caf8c5d87303541dfbfae0e4.tar.xz
ldetect-07ec02ebea0016e0caf8c5d87303541dfbfae0e4.zip
perl_checker cleanups
Diffstat (limited to 'MDV')
-rwxr-xr-xMDV/Lspciusb.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/MDV/Lspciusb.pm b/MDV/Lspciusb.pm
index 78d1a38..4577bda 100755
--- a/MDV/Lspciusb.pm
+++ b/MDV/Lspciusb.pm
@@ -56,17 +56,17 @@ my $pciids = read_pciids("/usr/share/pci.ids");
my %bus_get_description = (
pci => sub {
- my ($dev_path, $values) = @_;
+ my ($_dev_path, $values) = @_;
if (my @ids = $values =~ /^v([[:xdigit:]]{8})d([[:xdigit:]]{8})sv([[:xdigit:]]{8})sd([[:xdigit:]]{8})/) {
- my ($v, $d, $sv, $sd) = map { hex ($_) } @ids;
+ my ($v, $d, $sv, $sd) = map { hex($_) } @ids;
return $pciids->{sprintf(qq(%04x%04x%04x%04x), $v, $d, $sv, $sd)} ||
$pciids->{sprintf(qq(%04x%04xffffffff), $v, $d)};
}
},
usb => sub {
- my ($dev_path, $values) = @_;
- $full_path = dirname($dev_path) . "/" . readlink($dev_path);
- $parent_path = dirname($full_path);
+ my ($dev_path, $_values) = @_;
+ my $full_path = dirname($dev_path) . "/" . readlink($dev_path);
+ my $parent_path = dirname($full_path);
chomp_(cat_("$parent_path/product"));
},
);
@@ -85,7 +85,7 @@ sub list() {
$desc = $get_desc->($dev_path, $values);
}
$desc ||= "unknown";
- { module => $module, descr => $desc, modules => $modules }
+ { module => $module, descr => $desc, modules => $modules };
} map { glob("/sys/bus/$_/devices/*/modalias") } qw(pci usb);
}