]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_qca: Refactor error handling in qca_suspend()
authorMatthias Kaehlcke <mka@chromium.org>
Fri, 5 Jun 2020 18:46:11 +0000 (11:46 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Jun 2020 08:14:26 +0000 (10:14 +0200)
commit8efaf94f91dc8adca11cb32d01c88dc3598c5258
tree51859559da4b3d844db73f5af25cffa05eeb780f
parentd01480c0de527319f1be84ce574594936548dbef
Bluetooth: hci_qca: Refactor error handling in qca_suspend()

If waiting for IBS sleep times out jump to the error handler, this is
easier to read than multiple 'if' branches and a fall through to the
error handler.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c