bcmdhd: Clean wpa_driver_set_ap_wps_p2p_ie() func
Dmitry Shmidt [Wed, 25 Jun 2014 16:48:18 +0000 (09:48 -0700)]
Change-Id: I436d1e4e1dd9bdba4c5dc5e38c86d83e1c679a09
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

bcmdhd/wpa_supplicant_8_lib/driver_cmd_nl80211.c

index 43695f4..4b45322 100644 (file)
@@ -182,7 +182,7 @@ int wpa_driver_set_ap_wps_p2p_ie(void *priv, const struct wpabuf *beacon,
 
        wpa_printf(MSG_DEBUG, "%s: Entry", __func__);
        for (i = 0; cmd_arr[i].cmd != -1; i++) {
-               ap_wps_p2p_ie = cmd_arr[i].src ? cmd_arr[i].src : NULL;
+               ap_wps_p2p_ie = cmd_arr[i].src;
                if (ap_wps_p2p_ie) {
                        buf_len = strlen(_cmd) + 3 + wpabuf_len(ap_wps_p2p_ie);
                        buf = os_zalloc(buf_len);