From 3cc8e91b141890834aa2c08b7a5de3bdce29f1a9 Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Tue, 28 Nov 2017 18:11:57 -0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index b9f2bd4c1289..c9ca46843058 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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;