[PATCH] Bluetooth: hci_h4: Remove a redundant assignment in 'h4_flush()'

From: Christophe JAILLET
Date: Fri Feb 28 2020 - 00:01:27 EST


'hu->priv' is set twice to NULL in this function.
Axe one of these assignments.

Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
---
drivers/bluetooth/hci_h4.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c
index 6dc1fbeb564b..0b84a05a730b 100644
--- a/drivers/bluetooth/hci_h4.c
+++ b/drivers/bluetooth/hci_h4.c
@@ -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);
--
2.20.1