]> www.infradead.org Git - users/hch/misc.git/commitdiff
Bluetooth: Fix code style warning
authorJeremy Clifton <deaner92@yahoo.com>
Wed, 29 Jan 2025 12:33:30 +0000 (13:33 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 25 Mar 2025 16:31:27 +0000 (12:31 -0400)
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>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/bfusb.c

index cab93935cc7f16aabb2688dad98fe2065940b622..0d6ad50da0466e1d0c2ccbeb70bf18bddcda2667 100644 (file)
@@ -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);