Changeset 5436

Show
Ignore:
Timestamp:
11/27/08 15:54:28 (1 month ago)
Author:
khali
Message:

Delete unused @probelist in generate_modprobes().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5435 r5436  
    52075207sub generate_modprobes 
    52085208{ 
    5209   my ($chip, $detection, $nr, $i, @optionlist, @probelist, $driver, $isa, $adap); 
     5209  my ($chip, $detection, $nr, $i, @optionlist, $driver, $isa, $adap); 
    52105210  my $ipmi = 0; 
    52115211  my $modprobes = ""; 
     
    53095309    } 
    53105310 
    5311     next if not (@probelist or @optionlist)
     5311    next if not @optionlist
    53125312    $configfile = "# hwmon module options\n" unless defined $configfile; 
    53135313    $configfile .= "options $chip->{driver}"; 
     
    53175317    $configfile .= sprintf(",%d,0x%02x", shift @optionlist, shift @optionlist) 
    53185318                  while @optionlist; 
    5319     $configfile .= sprintf(" probe=%d,0x%02x", shift @probelist, 
    5320                                               shift @probelist) 
    5321                   if @probelist; 
    5322     $configfile .= sprintf(",%d,0x%02x", shift @probelist, shift @probelist) 
    5323                   while @probelist; 
    53245319    $configfile .= "\n"; 
    53255320  }