Bluetooth: Simplify UUID16 list generation for EIR
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 26 Jan 2013 22:31:31 +0000 (00:31 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 1 Feb 2013 17:50:17 +0000 (15:50 -0200)
commita10f27cf4272033d148d91ff12bb8f4b67dfaca4
tree9192e008995b9e27a71a7664c5a4ad539a57dec1
parent056341c8cb677356eb2c20a82e788ccb51c6a37b
Bluetooth: Simplify UUID16 list generation for EIR

There's no need to use two separate loops to generate a UUID list for
the EIR data. This patch merges the two loops previously used for the
16-bit UUID list generation into a single loop, thus simplifying the
code a great deal.

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