diff options
author | Valentin Ilie <valentin.ilie@gmail.com> | 2013-08-12 19:46:00 +0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-05 22:52:17 +0400 |
commit | a08b15e66e8ec700992641cf8ec015032e8365c8 (patch) | |
tree | 01554c5c6963be9da6ba573af135ec7a65f8a9d7 /drivers/bluetooth/ath3k.c | |
parent | 5981a8821b774ada0be512fd9bad7c241e17657e (diff) | |
download | linux-a08b15e66e8ec700992641cf8ec015032e8365c8.tar.xz |
Bluetooth: Remove assignments in if-statements
Remove assignment in if-statements to be consistent with the coding
style.
Signed-off-by: Valentin Ilie <valentin.ilie@gmail.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/ath3k.c')
-rw-r--r-- | drivers/bluetooth/ath3k.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c index 4f78a9d39dc8..59b2e6a40913 100644 --- a/drivers/bluetooth/ath3k.c +++ b/drivers/bluetooth/ath3k.c @@ -180,10 +180,9 @@ static int ath3k_load_firmware(struct usb_device *udev, } memcpy(send_buf, firmware->data, 20); - if ((err = usb_control_msg(udev, pipe, - USB_REQ_DFU_DNLOAD, - USB_TYPE_VENDOR, 0, 0, - send_buf, 20, USB_CTRL_SET_TIMEOUT)) < 0) { + err = usb_control_msg(udev, pipe, USB_REQ_DFU_DNLOAD, USB_TYPE_VENDOR, + 0, 0, send_buf, 20, USB_CTRL_SET_TIMEOUT); + if (err < 0) { BT_ERR("Can't change to loading configuration err"); goto error; } |