OSDN Git Service

JNI: style cleanup
authorMarie Janssen <jamuraa@google.com>
Wed, 30 Nov 2016 19:20:25 +0000 (11:20 -0800)
committerMarie Janssen <jamuraa@google.com>
Fri, 2 Dec 2016 19:00:01 +0000 (11:00 -0800)
commitae15d3d42fcb3349c11d394423493020e78c5f43
treee0423414ceb234b05f6eba9edf5d9fbdf4be0e88
parent490b7a3bbeff693b0ec1529ad33125c9d67d98e6
JNI: style cleanup

Beginning of style cleanup:
 - no assigns in conditionals
 - move declarations closer to first use
 - replace __FUNCTION__ with __func__
 - remove unnecessary gotos

Test: mma && manual sanity tests

Change-Id: I7f8fca01dd57f57538b71fe7d7753fffe1de4d00
12 files changed:
jni/com_android_bluetooth_a2dp.cpp
jni/com_android_bluetooth_a2dp_sink.cpp
jni/com_android_bluetooth_avrcp.cpp
jni/com_android_bluetooth_avrcp_controller.cpp
jni/com_android_bluetooth_btservice_AdapterService.cpp
jni/com_android_bluetooth_gatt.cpp
jni/com_android_bluetooth_hdp.cpp
jni/com_android_bluetooth_hfp.cpp
jni/com_android_bluetooth_hfpclient.cpp
jni/com_android_bluetooth_hid.cpp
jni/com_android_bluetooth_pan.cpp
jni/com_android_bluetooth_sdp.cpp