mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 09:14:18 -04:00
qcacld-3.0: Fix Datapath kernel checkpatch warnings in ol_tx_desc.h
Fix Datapath kernel checkpatch warnings in ol_tx_desc.h Change-Id: I00647231116da840dd3e49e54fee6c1c5826982d CRs-Fixed: 2032874
This commit is contained in:
parent
d79331a15f
commit
cb0bb18ba3
1 changed files with 3 additions and 4 deletions
|
|
@ -133,9 +133,8 @@ ol_tx_desc_find_check(struct ol_txrx_pdev_t *pdev, u_int16_t tx_desc_id)
|
|||
|
||||
tx_desc = ol_tx_desc_find(pdev, tx_desc_id);
|
||||
|
||||
if (tx_desc->pkt_type == ol_tx_frm_freed) {
|
||||
if (tx_desc->pkt_type == ol_tx_frm_freed)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return tx_desc;
|
||||
}
|
||||
|
|
@ -257,6 +256,7 @@ static inline
|
|||
struct ol_tx_desc_t *ol_tx_get_desc_global_pool(struct ol_txrx_pdev_t *pdev)
|
||||
{
|
||||
struct ol_tx_desc_t *tx_desc = &pdev->tx_desc.freelist->tx_desc;
|
||||
|
||||
pdev->tx_desc.freelist = pdev->tx_desc.freelist->next;
|
||||
pdev->tx_desc.num_free--;
|
||||
return tx_desc;
|
||||
|
|
@ -280,7 +280,6 @@ void ol_tx_put_desc_global_pool(struct ol_txrx_pdev_t *pdev,
|
|||
pdev->tx_desc.freelist =
|
||||
(union ol_tx_desc_list_elem_t *)tx_desc;
|
||||
pdev->tx_desc.num_free++;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -298,6 +297,7 @@ static inline
|
|||
struct ol_tx_desc_t *ol_tx_get_desc_flow_pool(struct ol_tx_flow_pool_t *pool)
|
||||
{
|
||||
struct ol_tx_desc_t *tx_desc = &pool->freelist->tx_desc;
|
||||
|
||||
pool->freelist = pool->freelist->next;
|
||||
pool->avail_desc--;
|
||||
return tx_desc;
|
||||
|
|
@ -320,7 +320,6 @@ void ol_tx_put_desc_flow_pool(struct ol_tx_flow_pool_t *pool,
|
|||
((union ol_tx_desc_list_elem_t *)tx_desc)->next = pool->freelist;
|
||||
pool->freelist = (union ol_tx_desc_list_elem_t *)tx_desc;
|
||||
pool->avail_desc++;
|
||||
return;
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue