[PATCH] Bluetooth: hcli_ldisc: Remove reduntant braces
From: oshada imalka
Date: Thu Jul 30 2026 - 08:00:20 EST
Removed a redundant braces for a single if statement
Signed-off-by: Oshada Imalka <developerimalka@xxxxxxxxx>
---
drivers/bluetooth/hci_ldisc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index 2ad42c3bbaac..e7de8a278edd 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -756,9 +756,9 @@ static int hci_uart_set_proto(struct hci_uart *hu, int id)
hu->proto = p;
err = hci_uart_register_dev(hu);
- if (err) {
+ if (err)
return err;
- }
+
set_bit(HCI_UART_PROTO_READY, &hu->flags);
clear_bit(HCI_UART_PROTO_INIT, &hu->flags);
--
2.53.0