Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82ee6fe1 authored by Min Liu's avatar Min Liu Committed by snandini
Browse files

qcacmn: Code cleanup in wlan_serialization_destroy_cmd_pool

Remove unnecessary assignment in wlan_serialization_destroy_cmd_pool
to avoid false alarm in some static code analysis tool.

Change-Id: I6f53b9c44534dc6297cf872dce0a265e1696d90c
CRs-Fixed: 2751743
parent 32eaabf0
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -145,7 +145,6 @@ static void wlan_serialization_destroy_cmd_pool(
		struct wlan_serialization_pdev_queue *pdev_queue)
		struct wlan_serialization_pdev_queue *pdev_queue)
{
{
	qdf_list_node_t *node = NULL;
	qdf_list_node_t *node = NULL;
	struct wlan_serialization_command_list *cmd_list;


	ser_debug("Destroy cmd pool list %pK, size %d",
	ser_debug("Destroy cmd pool list %pK, size %d",
		  &pdev_queue->cmd_pool_list,
		  &pdev_queue->cmd_pool_list,
@@ -153,8 +152,7 @@ static void wlan_serialization_destroy_cmd_pool(
	while (!qdf_list_empty(&pdev_queue->cmd_pool_list)) {
	while (!qdf_list_empty(&pdev_queue->cmd_pool_list)) {
		qdf_list_remove_front(&pdev_queue->cmd_pool_list,
		qdf_list_remove_front(&pdev_queue->cmd_pool_list,
				      &node);
				      &node);
		cmd_list = (struct wlan_serialization_command_list *)node;
		qdf_mem_free(node);
		qdf_mem_free(cmd_list);
	}
	}


	qdf_list_destroy(&pdev_queue->cmd_pool_list);
	qdf_list_destroy(&pdev_queue->cmd_pool_list);