Bluetooth: btnxpuart: remove useless assignment
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Mon, 11 Dec 2023 16:40:20 +0000 (17:40 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Dec 2023 17:58:57 +0000 (12:58 -0500)
Remove useless assignment of rx_skb to NULL in case the skb is in error,
this is already done in h4_recv_buf() that is executed a few lines
before.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btnxpuart.c

index 951fe3014a3f3feef41e75b39930ca176e5bb856..b7c56be078f815e9cf59ae96b46a3ae2afe54c3a 100644 (file)
@@ -1278,7 +1278,6 @@ static int btnxpuart_receive_buf(struct serdev_device *serdev, const u8 *data,
                /* Safe to ignore out-of-sync bootloader signatures */
                if (!is_fw_downloading(nxpdev))
                        bt_dev_err(nxpdev->hdev, "Frame reassembly failed (%d)", err);
-               nxpdev->rx_skb = NULL;
                return count;
        }
        if (!is_fw_downloading(nxpdev))