OSDN Git Service

Bluetooth: hci_h4: Remove a redundant assignment in 'h4_flush()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 28 Feb 2020 05:01:13 +0000 (06:01 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Feb 2020 07:43:57 +0000 (08:43 +0100)
'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>
drivers/bluetooth/hci_h4.c

index 94baa56..4b3b14a 100644 (file)
@@ -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);