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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user