mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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:
parent
244c3f631e
commit
3cc8e91b14
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue