Sfoglia il codice sorgente

qcacld-3.0: Fix compilation issue

Wrong code logic causes compilation issue. This change added braces
and fixed compilation issue.

Change-Id: I3503d26cf003f4b11e03d5df8d666866e0e1fc54
CRs-Fixed: 3267860
Wu Gao 2 anni fa
parent
commit
c749f69591
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      core/hdd/src/wlan_hdd_stats.c

+ 2 - 2
core/hdd/src/wlan_hdd_stats.c

@@ -1725,7 +1725,7 @@ void wlan_hdd_cfg80211_link_layer_stats_callback(hdd_handle_t hdd_handle,
 		}
 
 		adapter = hdd_get_adapter_by_vdev(hdd_ctx, results->ifaceId);
-		if (!adapter)
+		if (!adapter) {
 			hdd_debug_rl("invalid vdev_id %d sent by FW",
 				     results->ifaceId);
 			/* for peer stats FW doesn't update the vdev_id info*/
@@ -1736,7 +1736,7 @@ void wlan_hdd_cfg80211_link_layer_stats_callback(hdd_handle_t hdd_handle,
 				osif_request_put(request);
 				return;
 			}
-
+		}
 		wlan_hdd_update_ll_stats_request_bitmap(hdd_ctx, request,
 							results);
 		if (results->rspId == DEBUGFS_LLSTATS_REQID) {