diff mbox series

Bluetooth: Fix code style warning

Message ID 20250129123330.391567-2-deaner92@yahoo.com
State Accepted
Commit c131486038184f12e1548cbcf02e4046ed45a78b
Headers show
Series Bluetooth: Fix code style warning | expand

Commit Message

Jeremy Dean Jan. 29, 2025, 12:33 p.m. UTC
From: Jeremy Clifton <deaner92@yahoo.com>

Output of checkpatch shows warning:
drivers/bluetooth/bfusb.c:368: WARNING: braces {} are not necessary
for single statement blocks

Remove braces for single line statement.

Signed-off-by: Jeremy Clifton <deaner92@yahoo.com>
---
 drivers/bluetooth/bfusb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Jeremy Dean Jan. 29, 2025, 12:54 p.m. UTC | #1
I just realized I did not include a v2 in the title. Should I
resubmit the patch with a v2 or a v3?
diff mbox series

Patch

diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c
index cab93935cc7f..0d6ad50da046 100644
--- a/drivers/bluetooth/bfusb.c
+++ b/drivers/bluetooth/bfusb.c
@@ -365,9 +365,8 @@  static void bfusb_rx_complete(struct urb *urb)
 			buf   += 3;
 		}
 
-		if (count < len) {
+		if (count < len)
 			bt_dev_err(data->hdev, "block extends over URB buffer ranges");
-		}
 
 		if ((hdr & 0xe1) == 0xc1)
 			bfusb_recv_block(data, hdr, buf, len);