Browse Source

qcacmn: Code refine for duplicated spin unlock function

There are several duplicated spin unlock function calling in the
AC based TX flow control path. Remove this redundant codes.

CRs-Fixed: 2329973
Change-Id: I483bf97612b8e56f745360a3e84fbdff8c357ea9
chenguo 6 years ago
parent
commit
e4faf863c5
1 changed files with 1 additions and 4 deletions
  1. 1 4
      dp/wifi3.0/dp_tx_desc.h

+ 1 - 4
dp/wifi3.0/dp_tx_desc.h

@@ -267,14 +267,11 @@ dp_tx_desc_alloc(struct dp_soc *soc, uint8_t desc_pool_id)
 					qdf_get_system_timestamp();
 				soc->pause_cb(desc_pool_id,
 					      act, WLAN_DATA_FLOW_CONTROL);
-				qdf_spin_unlock_bh(&pool->flow_pool_lock);
-			} else {
-				qdf_spin_unlock_bh(&pool->flow_pool_lock);
 			}
 		} else {
 			pool->pkt_drop_no_desc++;
-			qdf_spin_unlock_bh(&pool->flow_pool_lock);
 		}
+		qdf_spin_unlock_bh(&pool->flow_pool_lock);
 	} else {
 		soc->pool_stats.pkt_drop_no_pool++;
 	}