2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

Cleanup generate_modprobes() a bit.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5442 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2008-11-27 17:47:07 +00:00
parent f932415c8a
commit 3cdf96e0f4

View File

@@ -5137,10 +5137,9 @@ sub print_chips_report
sub generate_modprobes
{
my ($chip, $detection, @optionlist, $isa, $adap);
my $ipmi = 0;
my $modprobes;
my $configfile;
my ($chip, $detection, @optionlist, $adap);
my ($isa, $ipmi);
my ($modprobes, $configfile);
# Handle aliases
# As of kernel 2.6.28, alias detection is handled by kernel drivers
@@ -5167,7 +5166,6 @@ sub generate_modprobes
}
}
$isa = 0;
foreach $chip (@chips_detected) {
foreach $detection (@{$chip->{detected}}) {
# Tag adapters which host hardware monitoring chips we want to access
@@ -5179,9 +5177,9 @@ sub generate_modprobes
if (exists $detection->{isa_addr}) {
$isa = 1;
}
if ($chip->{driver} eq "ipmisensors") {
$ipmi = 1;
}
}
if ($chip->{driver} eq "ipmisensors") {
$ipmi = 1;
}
}