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
This commit is contained in:
Srinivas Girigowda 2017-11-28 18:11:57 -08:00 • committed by snandini
commit 3cc8e91b14

View file

@ -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;