浏览代码

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
Yun Park 8 年之前
父节点
当前提交
cb0bb18ba3
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      core/dp/txrx/ol_tx_desc.h

+ 3 - 4
core/dp/txrx/ol_tx_desc.h

@@ -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