diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2014-03-24 16:25:43 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-03-24 22:19:01 +0200 |
commit | f3e500b00805713277a4a03b314baf43dac4b2ee (patch) | |
tree | 24c17733613843d3e88c7ec79fe8bb5ce9595e5d | |
parent | 3d4d9147a8cd086908e658f513a4c4c4cdecaea5 (diff) | |
download | bluez-f3e500b00805713277a4a03b314baf43dac4b2ee.tar.gz |
attrib: Minor code optimization
-rw-r--r-- | attrib/gatt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/attrib/gatt.c b/attrib/gatt.c index f57d0bb68..7363b4b3f 100644 --- a/attrib/gatt.c +++ b/attrib/gatt.c @@ -408,10 +408,8 @@ static struct gatt_included *included_from_buf(const uint8_t *buf, gsize len) if (len == 8) { bt_uuid_t uuid128; - bt_uuid_t uuid16; - bt_uuid16_create(&uuid16, get_le16(&buf[6])); - bt_uuid_to_uuid128(&uuid16, &uuid128); + get_uuid128(BT_UUID16, &buf[6], &uuid128); bt_uuid_to_string(&uuid128, incl->uuid, sizeof(incl->uuid)); } |