summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-04-16 22:11:06 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-04-16 22:11:06 +0000
commit0def0b9731fce3530d07435e10e2be94e09291b7 (patch)
tree08691f2b68e9f3c65298c8a1786d0cce4c8cfbee /lib
parentba8509d897212d08f292fc4ebc44c9bb8a808fce (diff)
downloaddrakx-net-0def0b9731fce3530d07435e10e2be94e09291b7.tar
drakx-net-0def0b9731fce3530d07435e10e2be94e09291b7.tar.gz
drakx-net-0def0b9731fce3530d07435e10e2be94e09291b7.tar.bz2
drakx-net-0def0b9731fce3530d07435e10e2be94e09291b7.tar.xz
drakx-net-0def0b9731fce3530d07435e10e2be94e09291b7.zip
Simplify check.
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection/wireless.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 67c598a..33104da 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -20,8 +20,7 @@ sub get_devices {
my @wireless = grep { detect_devices::is_wireless_interface($_) } detect_devices::get_lan_interfaces();
my @all_devices = (@devices, network::connection::ethernet::get_unlisted_devices(\@wireless, \@devices));
foreach (@all_devices) {
- my $interface = $_->{interface} or network::connection::ethernet::device_to_interface($_);
- next unless $interface;
+ my $interface = $_->{interface} || network::connection::ethernet::device_to_interface($_) or next;
my $driver = network::connection::ethernet::interface_to_driver($interface) or next;
$_->{driver} = $driver if $driver;
}