summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-29 01:11:46 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-29 01:11:46 +0000
commit48c11d67d688ef9fb2b1ef61a76c2efc99564d2b (patch)
treeb46cb96878c64d40ee73c6a5de0a4fe42f6d72c2
parent5e993d2980dc71ad66472f42dd5fbbced7e1daf5 (diff)
downloaddrakx-net-48c11d67d688ef9fb2b1ef61a76c2efc99564d2b.tar
drakx-net-48c11d67d688ef9fb2b1ef61a76c2efc99564d2b.tar.gz
drakx-net-48c11d67d688ef9fb2b1ef61a76c2efc99564d2b.tar.bz2
drakx-net-48c11d67d688ef9fb2b1ef61a76c2efc99564d2b.tar.xz
drakx-net-48c11d67d688ef9fb2b1ef61a76c2efc99564d2b.zip
remove unneeded parentheses
-rw-r--r--lib/network/connection/wireless.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 7f6ce9d..d8217b1 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -901,8 +901,8 @@ sub wpa_supplicant_load_eap_settings {
#Remove quotes on selected variables
$network->{$ui_var} = "$1" if $myeap_vars->{$myone} == 2 && $network->{$ui_var} =~ /^"(.*)"$/;
if ($myone eq "proto") {
- $network->{forceeap} = 'WPA2' if ($old_net->{$myone} =~ /^RSN$/);
- $network->{forceeap} = 'WPA' if ($old_net->{$myone} =~ /^WPA$/);
+ $network->{forceeap} = 'WPA2' if $old_net->{$myone} =~ /^RSN$/;
+ $network->{forceeap} = 'WPA' if $old_net->{$myone} =~ /^WPA$/;
}
}
}
@@ -948,14 +948,14 @@ sub wpa_supplicant_add_eap_network {
$mykey = join('_', "eap", $myone);
if (!defined $ui_input->{$mykey}) {
#Only if it is defined and not empty
- $network->{$myone} = $default_eap_cfg->{$myone} if (defined $default_eap_cfg->{$myone} && $default_eap_cfg->{$myone} ne "");
+ $network->{$myone} = $default_eap_cfg->{$myone} if defined $default_eap_cfg->{$myone} && $default_eap_cfg->{$myone} ne "";
} elsif ($ui_input->{$mykey} =~ /auto detect/i) {
#Only if it is defined and not empty
- $network->{$myone} = $default_eap_cfg->{$myone} if (defined $default_eap_cfg->{$myone} && $default_eap_cfg->{$myone} ne "");
+ $network->{$myone} = $default_eap_cfg->{$myone} if defined $default_eap_cfg->{$myone} && $default_eap_cfg->{$myone} ne "";
} else {
#Handle also quoting
#Do not define if blank, the save routine will delete entry from file
- next if ($ui_input->{$mykey} eq "");
+ next if $ui_input->{$mykey} eq "";
$network->{$myone} = $myeap_vars->{$myone} == 2 ? qq("$ui_input->{$mykey}") : "$ui_input->{$mykey}";
}
}