diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2023-12-11 17:40:20 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-12-22 18:58:57 +0100 |
commit | 3c83800a6c5be446e35648ccaba7da88173acb37 (patch) | |
tree | f5837e9b3e11a1655152970ae08a078f2735a4dd /drivers/bluetooth/btnxpuart.c | |
parent | Bluetooth: btmtkuart: fix recv_buf() return value (diff) | |
download | linux-3c83800a6c5be446e35648ccaba7da88173acb37.tar.xz linux-3c83800a6c5be446e35648ccaba7da88173acb37.zip |
Bluetooth: btnxpuart: remove useless assignment
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>
Diffstat (limited to 'drivers/bluetooth/btnxpuart.c')
-rw-r--r-- | drivers/bluetooth/btnxpuart.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c index 951fe3014a3f..b7c56be078f8 100644 --- a/drivers/bluetooth/btnxpuart.c +++ b/drivers/bluetooth/btnxpuart.c @@ -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)) |