dbus: Remove unnecessary wpa_s->bssid comparison

This is an array and cannot have NULL value.
This commit is contained in:
Jouni Malinen 2009-11-10 18:11:18 +02:00 committed by Jouni Malinen
parent 4f93ab0ffc
commit 0cf7d7450a

View file

@ -2281,7 +2281,7 @@ DBusMessage * wpas_dbus_getter_current_bss(DBusMessage *message,
NULL);
}
if (wpa_s->bssid && !is_zero_ether_addr(wpa_s->bssid)) {
if (!is_zero_ether_addr(wpa_s->bssid)) {
size_t i;
for (i = 0; i < wpa_s->scan_res->num; i++) {
struct wpa_scan_res *res = wpa_s->scan_res->res[i];