From 812d20dfd8512cfb3ce2f69f5e5d38a5be71b186 Mon Sep 17 00:00:00 2001 From: Hemant Gupta Date: Fri, 12 Jan 2018 11:55:47 +0530 Subject: [PATCH] Revert "HID: Update condition for checking LE HID handle validity" This reverts commit af94891aa6e66b0d4b495d60aeac2aa8091c9d33 as changes to fix same issue already merged via commit 2e3c3d782993c475e608291896db73b0960fa9dd so this patch is not longer required. Test: Code analysis for aosp master Fixes: 71842479 Change-Id: Ifbc2375ad6df7231c85ef30c5e2c5b5d8dde16f0 --- bta/hh/bta_hh_int.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bta/hh/bta_hh_int.h b/bta/hh/bta_hh_int.h index 70ad6a54c..74bcffc60 100644 --- a/bta/hh/bta_hh_int.h +++ b/bta/hh/bta_hh_int.h @@ -211,7 +211,7 @@ typedef struct { #define BTA_HH_GET_LE_DEV_HDL(x) (uint8_t)(((x) + 1) << 4) /* check to see if th edevice handle is a LE device handle */ #define BTA_HH_IS_LE_DEV_HDL(x) ((x)&0xf0) -#define BTA_HH_IS_LE_DEV_HDL_VALID(x) (((x) >> 4) <= BTA_HH_MAX_DEVICE) +#define BTA_HH_IS_LE_DEV_HDL_VALID(x) (((x) >> 4) <= BTA_HH_LE_MAX_KNOWN) #endif /* device control block */ -- 2.11.0