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

Commit 4d9d25f9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Fix Klocwork issues in LE"

parents 2bf2b552 b8097cd4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ public final class ScanFilter implements Parcelable {
        }

        // Manufacturer data match.
        if (mManufacturerId >= 0) {
        if (mManufacturerId >= 0 && null != scanRecord) {
            if (!matchesPartialData(mManufacturerData, mManufacturerDataMask,
                    scanRecord.getManufacturerSpecificData(mManufacturerId))) {
                return false;
@@ -350,7 +350,7 @@ public final class ScanFilter implements Parcelable {

    // Check whether the data pattern matches the parsed data.
    private boolean matchesPartialData(byte[] data, byte[] dataMask, byte[] parsedData) {
        if (parsedData == null || parsedData.length < data.length) {
        if (parsedData == null || data == null || parsedData.length < data.length) {
            return false;
        }
        if (dataMask == null) {