]> git.baikalelectronics.ru Git - kernel.git/commit
wcn36xx: use !! when assigning int as a boolean
authorBob Copeland <me@bobcopeland.com>
Fri, 9 Jan 2015 19:15:46 +0000 (14:15 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 23 Jan 2015 17:11:56 +0000 (19:11 +0200)
commit2baf6530a18c0a910d016184a2078d48bc66cba2
tree24826cba706befeb5b7a558c5ad0cabf331d44f7
parentf6e0cb057d48e1e89b886223b56405c0cfeeaa5f
wcn36xx: use !! when assigning int as a boolean

bd->tx_comp is a single bit in a bitfield, so assigning
"info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS" only happens
to work because TX_STATUS is defined to BIT(0); if it were
any other bit this assignment would fail.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wcn36xx/txrx.c