From: Christophe JAILLET Date: Fri, 28 Feb 2020 05:01:13 +0000 (+0100) Subject: Bluetooth: hci_h4: Remove a redundant assignment in 'h4_flush()' X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4f28e3f9174a4a1860810d484ca9bcff761426b8;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c index 94baa56b9f50..4b3b14a34794 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);