]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Fix extra conversion to __le32
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 9 Mar 2012 11:00:50 +0000 (13:00 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 14:39:05 +0000 (11:39 -0300)
Value to be converted is already in __le32 format.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c

index 7fcff888713171cb760296726fdcfca19f72aaca..97b5b6cd3f2ef39e25e7cf37fc6d75bcaba6cdba 100644 (file)
@@ -3107,7 +3107,7 @@ int mgmt_user_confirm_request(struct hci_dev *hdev, bdaddr_t *bdaddr,
        bacpy(&ev.addr.bdaddr, bdaddr);
        ev.addr.type = link_to_mgmt(link_type, addr_type);
        ev.confirm_hint = confirm_hint;
-       put_unaligned_le32(value, &ev.value);
+       ev.value = value;
 
        return mgmt_event(MGMT_EV_USER_CONFIRM_REQUEST, hdev, &ev, sizeof(ev),
                          NULL);