diff options
| author | oshada imalka <developerimalka@gmail.com> | 2026-07-30 16:55:09 +0530 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-08-07 15:38:32 -0400 |
| commit | eb7e88e359882def910ccdc061d981a60d43f8ff (patch) | |
| tree | 82691a2491f4a72a83cf656883348c7210d2f905 | |
| parent | 33af47e847fe4a28b109673affb5874015d54f5a (diff) | |
Bluetooth: hcli_ldisc: Remove reduntant braces
Removed a redundant braces for a single if statement
Signed-off-by: Oshada Imalka <developerimalka@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
| -rw-r--r-- | drivers/bluetooth/hci_ldisc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 46dfbe6f1c2e..58f5504a336e 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c @@ -762,9 +762,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); |
