diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-28 12:57:56 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-28 12:57:56 -0700 |
commit | 4ae0fb61c2b92a3070898d8c03472775bea6c76f (patch) | |
tree | c352a1098883d6b1131b1729b892a9eb768990b7 /tools | |
parent | 94b0a8f405a591e6b082589e3f06ec9db747af31 (diff) | |
download | bluez-4ae0fb61c2b92a3070898d8c03472775bea6c76f.tar.gz |
Fix minor coding style issues in hid2hci
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hid2hci.c | 11 |
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; } |