Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e8d5438 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Kalle Valo
Browse files

ath10k: debug: match wait_for_completion_timeout return type



Return type of wait_for_completion_timeout is unsigned long not int.
An appropriately named unsigned long is added and the assignments fixed up.
Missing spaces 1*HZ -> 1 * HZ were also added along the way.

Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 7c377c3d
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -380,7 +380,7 @@ void ath10k_debug_fw_stats_process(struct ath10k *ar, struct sk_buff *skb)

static int ath10k_debug_fw_stats_request(struct ath10k *ar)
{
	unsigned long timeout;
	unsigned long timeout, time_left;
	int ret;

	lockdep_assert_held(&ar->conf_mutex);
@@ -404,9 +404,10 @@ static int ath10k_debug_fw_stats_request(struct ath10k *ar)
			return ret;
		}

		ret = wait_for_completion_timeout(&ar->debug.fw_stats_complete,
		time_left =
		wait_for_completion_timeout(&ar->debug.fw_stats_complete,
					    1 * HZ);
		if (ret == 0)
		if (!time_left)
			return -ETIMEDOUT;

		spin_lock_bh(&ar->data_lock);