diff mbox series

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

Message ID 20200228050113.25041-1-christophe.jaillet@wanadoo.fr (mailing list archive)
State Accepted
Delegated to: Marcel Holtmann
Headers show
Series Bluetooth: hci_h4: Remove a redundant assignment in 'h4_flush()' | expand

Commit Message

Christophe JAILLET Feb. 28, 2020, 5:01 a.m. UTC
'hu->priv' is set twice to NULL in this function.
Axe one of these assignments.

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

Comments

Marcel Holtmann Feb. 28, 2020, 7:44 a.m. UTC | #1
Hi Christophe,

> 'hu->priv' is set twice to NULL in this function.
> Axe one of these assignments.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> drivers/bluetooth/hci_h4.c | 2 --
> 1 file changed, 2 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel
diff mbox series

Patch

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);