From e613ec67d894f48f8bc7d46a25808a9dcfa4e7b0 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 12 Jan 2009 12:30:12 +0000 Subject: [PATCH] Drop a needless variable. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5587 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 078a81a9..94a77547 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -5354,12 +5354,10 @@ sub main EOT my $i = 0; - my $sysconfig = ""; foreach (@{$bus_modules}, @{$hwmon_modules}) { - $sysconfig .= "MODULE_$i=$_\n"; + print SYSCONFIG "MODULE_$i=$_\n"; $i++; } - print SYSCONFIG $sysconfig; close(SYSCONFIG); print "Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors\n".