2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Reindent 2 functions.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5435 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2008-11-26 17:17:29 +00:00
parent 19cb69acf0
commit feda422989

View File

@@ -2294,12 +2294,13 @@ use vars qw(%modules_list %modules_supported @modules_we_loaded);
sub initialize_modules_list
{
open(local *INPUTFILE, "/proc/modules") or return;
local $_;
while (<INPUTFILE>) {
tr/-/_/; # Probably not needed
$modules_list{$1} = 1 if m/^(\S*)/;
}
local $_;
open(local *INPUTFILE, "/proc/modules") or return;
while (<INPUTFILE>) {
tr/-/_/; # Probably not needed
$modules_list{$1} = 1 if m/^(\S*)/;
}
}
sub is_module_loaded
@@ -2332,9 +2333,9 @@ sub load_module
sub initialize_modules_supported
{
foreach my $chip (@chip_ids) {
$modules_supported{$chip->{driver}}++;
}
foreach my $chip (@chip_ids) {
$modules_supported{$chip->{driver}}++;
}
}
sub unload_modules