diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2011-03-01 16:55:33 +0100 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-03-02 02:19:10 +0100 |
commit | 3cf2a4f6ca4e088ba79d05d6e7f4635c535e6ae4 (patch) | |
tree | d878acbb7dc8a118ba8cf310bc01a3e4ddf62740 /net/bluetooth/mgmt.c | |
parent | Bluetooth: Remove unused code from get_connections (diff) | |
download | linux-3cf2a4f6ca4e088ba79d05d6e7f4635c535e6ae4.tar.xz linux-3cf2a4f6ca4e088ba79d05d6e7f4635c535e6ae4.zip |
Bluetooth: Use variable name instead of type in sizeof()
As written in the CodingStyle doc.
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to '')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 6dd015277f0d..f69dbcb8a707 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -1035,7 +1035,7 @@ static int pin_code_neg_reply(struct sock *sk, u16 index, unsigned char *data, goto failed; } - err = hci_send_cmd(hdev, HCI_OP_PIN_CODE_NEG_REPLY, sizeof(bdaddr_t), + err = hci_send_cmd(hdev, HCI_OP_PIN_CODE_NEG_REPLY, sizeof(cp->bdaddr), &cp->bdaddr); if (err < 0) mgmt_pending_remove(cmd); |