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

Commit 3e7eab3f 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

am: a9459586

* commit 'a9459586':
  Initialize variable protocolMode before it is used

Change-Id: I488faa4484474980b2754b2c95221d282c0c78de
parents 76ef070c a9459586
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);