OSDN Git Service

ath10k: txrx: remove unreachable negative return check and fixup type
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 15 Jun 2015 11:46:43 +0000 (14:46 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 16 Jun 2015 10:14:54 +0000 (13:14 +0300)
commit71c47df4aa54ee3bfb113a5ae468c8bfb3a6fb7b
tree76ea825c38a0f4ad36ed78335f653971283dc28b
parentd4298a3a8c92a18d375e55feecc60e4eefeb45e3
ath10k: txrx: remove unreachable negative return check and fixup type

wait_event_timeout(), introduced in 'commit 5e3dd157d7e7 ("ath10k: mac80211
driver for Qualcomm Atheros 802.11ac CQA98xx devices")' never returns < 0
so the only failure condition to be checked is == 0 (timeout). Further the
return type is long not int - an appropriately named variable is added
and the assignments fixed up.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/txrx.c