mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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
This commit is contained in:
parent
027d8742b8
commit
d88847938b
1 changed files with 1 additions and 3 deletions
|
|
@ -145,7 +145,6 @@ static void wlan_serialization_destroy_cmd_pool(
|
|||
struct wlan_serialization_pdev_queue *pdev_queue)
|
||||
{
|
||||
qdf_list_node_t *node = NULL;
|
||||
struct wlan_serialization_command_list *cmd_list;
|
||||
|
||||
ser_debug("Destroy cmd pool list %pK, size %d",
|
||||
&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)) {
|
||||
qdf_list_remove_front(&pdev_queue->cmd_pool_list,
|
||||
&node);
|
||||
cmd_list = (struct wlan_serialization_command_list *)node;
|
||||
qdf_mem_free(cmd_list);
|
||||
qdf_mem_free(node);
|
||||
}
|
||||
|
||||
qdf_list_destroy(&pdev_queue->cmd_pool_list);
|
||||
|
|
|
|||
Loading…
Reference in a new issue