From 04ec53e8addca60eb0bf6ea55abfa11dff25be88 Mon Sep 17 00:00:00 2001 From: Swetha Chikkaboraiah Date: Tue, 2 Jun 2020 10:52:29 +0530 Subject: 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 --- drivers/net/wireless/ath/ath10k/wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3