Skip to contentSkip to conversation

Bluetooth: btusb: Fix two coding style issues

PATCH Applied Marcel Holtmann 2 participants 2 messages Apr 16, 2015 – Apr 18, 2015 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: btusb: Fix two coding style issues

ERROR: spaces required around that '<' (ctx:WxV)
+ if (err <0)
^

ERROR: code indent should use tabs where possible
+^I^I^I^I sizeof(ver));$

---
 drivers/bluetooth/btusb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/btusb.c +2 -2
index 84f998532117..920f6fbd28ac 100644
@@ -916,7 +916,7 @@ static int btusb_open(struct hci_dev *hdev)
 	 */
 	if (data->setup_on_usb) {
 		err = data->setup_on_usb(hdev);
-		if (err <0)
+		if (err < 0)
 			return err;
 	}
 
@@ -2973,7 +2973,7 @@ static int btusb_setup_qca(struct hci_dev *hdev)
 	int i, err;
 
 	err = btusb_qca_send_vendor_req(hdev, QCA_GET_TARGET_VERSION, &ver,
-				        sizeof(ver));
+					sizeof(ver));
 	if (err < 0)
 		return err;
 
Signature · 1 line
2.1.0
#1 lore raw

Hi Marcel,

Quoted 11 lines · Marcel Holtmann

ERROR: spaces required around that '<' (ctx:WxV)

(quoted diff) +1 -0
+		if (err <0)
 		        ^

ERROR: code indent should use tabs where possible
+^I^I^I^I sizeof(ver));$

---
 drivers/bluetooth/btusb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to bluetooth-next. Thanks.

Johan