From: <mga...@us...> - 2010-08-18 15:28:24
|
Revision: 1958 http://scst.svn.sourceforge.net/scst/?rev=1958&view=rev Author: mgandalf Date: 2010-08-18 15:28:18 +0000 (Wed, 18 Aug 2010) Log Message: ----------- - Minor fix for setting attributes which aren't readable. Modified Paths: -------------- trunk/scstadmin/scstadmin.sysfs/scstadmin Modified: trunk/scstadmin/scstadmin.sysfs/scstadmin =================================================================== --- trunk/scstadmin/scstadmin.sysfs/scstadmin 2010-08-18 15:02:33 UTC (rev 1957) +++ trunk/scstadmin/scstadmin.sysfs/scstadmin 2010-08-18 15:28:18 UTC (rev 1958) @@ -3709,13 +3709,11 @@ if (defined($$attributes{$attribute}->{'keys'})) { foreach my $key (keys %{$$attributes{$attribute}->{'keys'}}) { my $value = $$attributes{$attribute}->{'keys'}->{$key}->{'value'}; - $cache{$attribute}->{$value} = FALSE - if (defined($value) && ($value ne '')); + $cache{$attribute}->{$value} = FALSE; } } else { my $value = $$attributes{$attribute}->{'value'}; - $cache{$attribute}->{$value} = FALSE - if (defined($value) && ($value ne '')); + $cache{$attribute}->{$value} = FALSE; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |