Skip to content

Commit 4f28e3f

Browse files
tititiou36holtmann
authored andcommitted
Bluetooth: hci_h4: Remove a redundant assignment in 'h4_flush()'
'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>
1 parent 6bd023c commit 4f28e3f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/bluetooth/hci_h4.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ static int h4_close(struct hci_uart *hu)
7171
{
7272
struct h4_struct *h4 = hu->priv;
7373

74-
hu->priv = NULL;
75-
7674
BT_DBG("hu %p", hu);
7775

7876
skb_queue_purge(&h4->txq);

0 commit comments

Comments
 (0)