summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwetha Chikkaboraiah <schikk@codeaurora.org>2020-06-02 10:52:29 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-06-08 04:35:11 -0700
commit04ec53e8addca60eb0bf6ea55abfa11dff25be88 (patch)
tree09815c96a03e9b297a1c429286490e67947d3fda
parent5600f37ab5bbfed0fa6d782ec6d16f9fee511b62 (diff)
ath10k: Fix compilation issue
Fix below compilation error with clang warning: address of array 'arg->ie' will always evaluate to 'true' [-Wpointer-bool-conversion]. Change-Id: I83b3f584813720ded1c9c986f9aeaa3db1d71fcf Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index 7b8f9dd664ad..045a27eef176 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -6048,7 +6048,7 @@ static struct sk_buff *ath10k_wmi_10_4_op_gen_init(struct ath10k *ar)
int ath10k_wmi_start_scan_verify(const struct wmi_start_scan_arg *arg)
{
- if (arg->ie_len && !arg->ie)
+ if (arg->ie_len)
return -EINVAL;
if (arg->n_channels && !arg->channels)
return -EINVAL;