Skip to content

Commit

Permalink
Bluetooth: hci_h4: Remove a redundant assignment in 'h4_flush()'
Browse files Browse the repository at this point in the history
'hu->priv' is set twice to NULL in this function.
Axe one of these assignments.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Christophe JAILLET authored and Marcel Holtmann committed Feb 28, 2020
1 parent 6bd023c commit 4f28e3f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/bluetooth/hci_h4.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ static int h4_close(struct hci_uart *hu)
{
struct h4_struct *h4 = hu->priv;

hu->priv = NULL;

BT_DBG("hu %p", hu);

skb_queue_purge(&h4->txq);
Expand Down

0 comments on commit 4f28e3f

Please sign in to comment.