mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
Get rid of useless variables $isa and $ipmi.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5592 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -5054,7 +5054,6 @@ sub print_chips_report
|
||||
sub generate_modprobes
|
||||
{
|
||||
my ($driver, $detection, $adap);
|
||||
my ($isa, $ipmi);
|
||||
my ($configfile, %bus_modules, %hwmon_modules);
|
||||
|
||||
foreach $driver (keys %chips_detected) {
|
||||
@@ -5065,12 +5064,15 @@ sub generate_modprobes
|
||||
$i2c_adapters[$detection->{i2c_devnr}]->{used}++;
|
||||
}
|
||||
|
||||
if (exists $detection->{isa_addr}) {
|
||||
$isa = 1;
|
||||
# i2c-isa is loaded automatically (as a dependency)
|
||||
# since 2.6.14, and will soon be gone.
|
||||
if (exists $detection->{isa_addr}
|
||||
&& !kernel_version_at_least(2, 6, 18)) {
|
||||
$bus_modules{"i2c-isa"}++
|
||||
}
|
||||
}
|
||||
if ($driver eq "ipmisensors") {
|
||||
$ipmi = 1;
|
||||
$bus_modules{"ipmi-si"}++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5107,15 +5109,6 @@ sub generate_modprobes
|
||||
$bus_modules{$adap->{driver}}++;
|
||||
}
|
||||
|
||||
# i2c-isa is loaded automatically (as a dependency) since 2.6.14,
|
||||
# and will soon be gone.
|
||||
if ($isa && !kernel_version_at_least(2, 6, 18)) {
|
||||
$bus_modules{"i2c-isa"}++;
|
||||
}
|
||||
if ($ipmi) {
|
||||
$bus_modules{"ipmi-si"}++;
|
||||
}
|
||||
|
||||
# Now determine the chip probe lines
|
||||
foreach $driver (keys %chips_detected) {
|
||||
next if not @{$chips_detected{$driver}};
|
||||
|
Reference in New Issue
Block a user