Changeset 5442

Show
Ignore:
Timestamp:
11/27/08 18:47:07 (4 years ago)
Author:
khali
Message:

Cleanup generate_modprobes() a bit.

Files:
1 modified

Legend:

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

    r5441 r5442  
    51385138sub generate_modprobes 
    51395139{ 
    5140   my ($chip, $detection, @optionlist, $isa, $adap); 
    5141   my $ipmi = 0; 
    5142   my $modprobes; 
    5143   my $configfile; 
     5140  my ($chip, $detection, @optionlist, $adap); 
     5141  my ($isa, $ipmi); 
     5142  my ($modprobes, $configfile); 
    51445143 
    51455144  # Handle aliases 
     
    51685167  } 
    51695168 
    5170   $isa = 0; 
    51715169  foreach $chip (@chips_detected) { 
    51725170    foreach $detection (@{$chip->{detected}}) { 
     
    51805178           $isa = 1; 
    51815179      } 
    5182       if ($chip->{driver} eq "ipmisensors") { 
    5183            $ipmi = 1; 
    5184       } 
     5180    } 
     5181    if ($chip->{driver} eq "ipmisensors") { 
     5182         $ipmi = 1; 
    51855183    } 
    51865184  }