Skip to content

Commit

Permalink
Bluetooth: Fix code style warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Clifton authored and Luiz Augusto von Dentz committed Mar 25, 2025
1 parent 60bfe8a commit 461159e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/bluetooth/bfusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 461159e

Please sign in to comment.