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

Commit da3f9052 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Initialize variable protocolMode before it is used

This fixes a compilation warning.
Note that the variable protocolMode is unused by the backend.

Bug: 28908173
Change-Id: I6925a974ec825db8cfda694f7f5a30aa9919552d
parent 25f4fa5b
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);