diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-12-20 13:50:42 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-12-20 15:23:54 +0200 |
commit | c192841088f5e5916e8e1e0feee9bcfbaca1b3eb (patch) | |
tree | a00d8c11661317755fe3ec3e6ea6a5dc545db6b7 /android/hal-bluetooth.c | |
parent | b6b3ff89c92c782af8b7aa5778f88805524f2aff (diff) | |
download | bluez-c192841088f5e5916e8e1e0feee9bcfbaca1b3eb.tar.gz |
android/bluetooth: Remove not needed local variable
Both manufacturer and sub_version already have correct type and struct
is marked as packed so there is no need to memcpy to temp variable.
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r-- | android/hal-bluetooth.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index 3dbc4356b..9f9814ac6 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -150,17 +150,14 @@ static void device_props_to_hal(bt_property_t *send_props, { static bt_remote_version_t e; const struct hal_prop_device_info *p; - uint16_t tmp; send_props[i].val = &e; send_props[i].len = sizeof(e); p = (struct hal_prop_device_info *) prop->val; - memcpy(&tmp, &p->manufacturer, sizeof(tmp)); - e.manufacturer = tmp; - memcpy(&tmp, &p->sub_version, sizeof(tmp)); - e.sub_ver = tmp; + e.manufacturer = p->manufacturer; + e.sub_ver = p->sub_version; e.version = p->version; } break; |