summaryrefslogtreecommitdiff
path: root/tools/hid2hci.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-04-28 12:57:56 -0700
committerJohan Hedberg <johan.hedberg@nokia.com>2011-04-28 12:57:56 -0700
commit4ae0fb61c2b92a3070898d8c03472775bea6c76f (patch)
treec352a1098883d6b1131b1729b892a9eb768990b7 /tools/hid2hci.c
parent94b0a8f405a591e6b082589e3f06ec9db747af31 (diff)
downloadbluez-4ae0fb61c2b92a3070898d8c03472775bea6c76f.tar.gz
Fix minor coding style issues in hid2hci
Diffstat (limited to 'tools/hid2hci.c')
-rw-r--r--tools/hid2hci.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/hid2hci.c b/tools/hid2hci.c
index dea3974a5..45a3a3db8 100644
--- a/tools/hid2hci.c
+++ b/tools/hid2hci.c
@@ -49,15 +49,14 @@ static int usb_switch_csr(struct usb_dev_handle *dev, enum mode mode)
int err;
err = usb_control_msg(dev,
- USB_ENDPOINT_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
- 0, mode, 0, NULL, 0, 10000);
+ USB_ENDPOINT_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
+ 0, mode, 0, NULL, 0, 10000);
if (err == 0) {
err = -1;
errno = EALREADY;
- } else {
- if (errno == ETIMEDOUT)
- err = 0;
- }
+ } else if (errno == ETIMEDOUT)
+ err = 0;
+
return err;
}