From 0bd6c23c89aeb94835533cf4348c88d21bc33756 Mon Sep 17 00:00:00 2001 From: Sravan Kumar Kairam Date: Tue, 30 Apr 2019 14:40:39 +0530 Subject: [PATCH] qcacmn: Fix decrement flush in progress When rx buffer queue list is empty flush in progress atomic variable is not decremented before return. Fix this by removing the code to check list empty as the qdf function to remove the node from front will also do the same check for empty list, so the code fall through and return at the end of the function. Change-Id: I29b87eb7f9e5d35918aba6ad1d0ccbbdbf6eee3b CRs-Fixed: 2444437 --- dp/wifi3.0/dp_rx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index 979a9c6a5de1..d294f211d66f 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/dp/wifi3.0/dp_rx.c @@ -1197,10 +1197,6 @@ void dp_rx_flush_rx_cached(struct dp_peer *peer, bool drop) bufqi = &peer->bufq_info; qdf_spin_lock_bh(&bufqi->bufq_lock); - if (qdf_list_empty(&bufqi->cached_bufq)) { - qdf_spin_unlock_bh(&bufqi->bufq_lock); - return; - } qdf_list_remove_front(&bufqi->cached_bufq, (qdf_list_node_t **)&cache_buf); while (cache_buf) {