Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: Remove redundant calls to h5_reset_rx

h5_reset_rx is unconditionally called at the end of
h5_complete_rx_pkt, no need to call it anymore after
that.

Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Loic Poulain and committed by
Marcel Holtmann
37f468cd 80afeb6c

-4
-4
drivers/bluetooth/hci_h5.c
··· 355 355 356 356 static int h5_rx_crc(struct hci_uart *hu, unsigned char c) 357 357 { 358 - struct h5 *h5 = hu->priv; 359 - 360 358 h5_complete_rx_pkt(hu); 361 - h5_reset_rx(h5); 362 359 363 360 return 0; 364 361 } ··· 370 373 h5->rx_pending = 2; 371 374 } else { 372 375 h5_complete_rx_pkt(hu); 373 - h5_reset_rx(h5); 374 376 } 375 377 376 378 return 0;