2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-03 07:45:30 +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 sub generate_modprobes
{ {
my ($chip, $detection, @optionlist, $isa, $adap); my ($chip, $detection, @optionlist, $adap);
my $ipmi = 0; my ($isa, $ipmi);
my $modprobes; my ($modprobes, $configfile);
my $configfile;
# Handle aliases # Handle aliases
# As of kernel 2.6.28, alias detection is handled by kernel drivers # 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 $chip (@chips_detected) {
foreach $detection (@{$chip->{detected}}) { foreach $detection (@{$chip->{detected}}) {
# Tag adapters which host hardware monitoring chips we want to access # Tag adapters which host hardware monitoring chips we want to access
@@ -5179,9 +5177,9 @@ sub generate_modprobes
if (exists $detection->{isa_addr}) { if (exists $detection->{isa_addr}) {
$isa = 1; $isa = 1;
} }
if ($chip->{driver} eq "ipmisensors") { }
$ipmi = 1; if ($chip->{driver} eq "ipmisensors") {
} $ipmi = 1;
} }
} }