Browse Source

qcacld-3.0: clang: Remove unnecessary NULL check for address of array

Clang generated the following warning in various places:

warning: address of array 'weight->pcl_list' will always evaluate
to 'true' [-Wpointer-bool-conversion]
        if (weight->pcl_list) {
              ~~ ~~~^~~

Remove the unnecessary NULL check for address of array.

Change-Id: Ibc82b4d7135a0425748c0fb7f065435ccd28ad6f
CRs-Fixed: 2150410
Srinivas Girigowda 7 years ago
parent
commit
3cc8e91b14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/hdd/src/wlan_hdd_main.c

@@ -5013,7 +5013,7 @@ void hdd_update_hlp_info(struct net_device *dev,
 		return;
 	}
 
-	if (!roam_fils_params->hlp_data_len || !roam_fils_params->hlp_data) {
+	if (!roam_fils_params->hlp_data_len) {
 		hdd_err("FILS HLP Data NULL, len %d",
 			roam_fils_params->hlp_data_len);
 		return;