mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacmn: Use qdf_bitmap_empty to check bit status
Replace the implementation of checking bitmap status with a standard API qdf_bitmap_empty Change-Id: I22ee8c25c1d911f65ba4bfe235557444e6333ca4 CRs-Fixed: 2690914
This commit is contained in:
parent
2846a3c308
commit
bfaf232db7
1 changed files with 2 additions and 9 deletions
|
|
@ -906,18 +906,11 @@ wlan_serialization_destroy_lock(qdf_spinlock_t *lock)
|
|||
bool wlan_serialization_any_vdev_cmd_active(
|
||||
struct wlan_serialization_pdev_queue *pdev_queue)
|
||||
{
|
||||
bool status = false;
|
||||
unsigned long any_vdev_active;
|
||||
uint32_t vdev_bitmap_size;
|
||||
|
||||
vdev_bitmap_size =
|
||||
(QDF_CHAR_BIT * sizeof(pdev_queue->vdev_active_cmd_bitmap));
|
||||
|
||||
any_vdev_active = qdf_find_first_bit(
|
||||
pdev_queue->vdev_active_cmd_bitmap, vdev_bitmap_size);
|
||||
|
||||
if (any_vdev_active < vdev_bitmap_size)
|
||||
status = true;
|
||||
|
||||
return status;
|
||||
return !qdf_bitmap_empty(pdev_queue->vdev_active_cmd_bitmap,
|
||||
vdev_bitmap_size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue