Delete unused @probelist in generate_modprobes().

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5436 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-11-27 14:54:28 +00:00
1 parent feda422989
commit 820d8d3c0e
1 file changed
+2 -7
+2 -7
View File
@@ -5206,7 +5206,7 @@ sub print_chips_report
# A second array, called
sub generate_modprobes
{
my ($chip, $detection, $nr, $i, @optionlist, @probelist, $driver, $isa, $adap);
my ($chip, $detection, $nr, $i, @optionlist, $driver, $isa, $adap);
my $ipmi = 0;
my $modprobes = "";
my $configfile;
@@ -5308,7 +5308,7 @@ sub generate_modprobes
}
}
next if not (@probelist or @optionlist);
next if not @optionlist;
$configfile = "# hwmon module options\n" unless defined $configfile;
$configfile .= "options $chip->{driver}";
$configfile .= sprintf(" ignore=%d,0x%02x", shift @optionlist,
@@ -5316,11 +5316,6 @@ sub generate_modprobes
if @optionlist;
$configfile .= sprintf(",%d,0x%02x", shift @optionlist, shift @optionlist)
while @optionlist;
$configfile .= sprintf(" probe=%d,0x%02x", shift @probelist,
shift @probelist)
if @probelist;
$configfile .= sprintf(",%d,0x%02x", shift @probelist, shift @probelist)
while @probelist;
$configfile .= "\n";
}