Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9459586 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Merge "Initialize variable protocolMode before it is used"

am: 49a2bd6f

* commit '49a2bd6f':
  Initialize variable protocolMode before it is used

Change-Id: Iffb4cc051808316ee16a1796858812006449bc3f
parents 524f6427 49a2bd6f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -315,7 +315,8 @@ static jboolean getProtocolModeNative(JNIEnv *env, jobject object, jbyteArray ad
    bt_status_t status;
    jbyte *addr;
    jboolean ret = JNI_TRUE;
    bthh_protocol_mode_t protocolMode;
    // TODO: protocolMode is unused by the backend: see b/28908173
    bthh_protocol_mode_t protocolMode = BTHH_UNSUPPORTED_MODE;
    if (!sBluetoothHidInterface) return JNI_FALSE;

    addr = env->GetByteArrayElements(address, NULL);