Bluetooth: Remove useless eir_len variable from EIR creation
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 26 Jan 2013 22:31:32 +0000 (00:31 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 1 Feb 2013 17:50:17 +0000 (15:50 -0200)
commit892bbc5794daac57bff09c584821ed271fa18046
tree5311131b07d1bd856ee28f2fa77636fe194d0e6f
parenta10f27cf4272033d148d91ff12bb8f4b67dfaca4
Bluetooth: Remove useless eir_len variable from EIR creation

The amount of data encoded so far in the create_eir() function can be
calculated simply through the difference between the data and ptr
pointer variables. The eir_len variable then becomes essentially
useless.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c