ath10k: improve vdev map handling
authorBen Greear <greearb@candelatech.com>
Tue, 12 Aug 2014 08:02:19 +0000 (11:02 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 14 Aug 2014 12:17:32 +0000 (15:17 +0300)
Check vdev map has space before calling ffs,
fix invalid cleanup in failure to create vdev
case.

Open-code the BIT() logic since BIT does not properly
handle 64-bit bitfields and future patches will make
use of larger bitfields.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

No differences found