From 7c7d0d0b5bd0a7660333c0c4ceeb7368f04e7aa4 Mon Sep 17 00:00:00 2001 From: nanosonde Date: Wed, 25 Apr 2018 23:23:42 +0200 Subject: [PATCH] Remove unnecessary check --- interface_object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface_object.cpp b/interface_object.cpp index 6316d33..53fa85e 100644 --- a/interface_object.cpp +++ b/interface_object.cpp @@ -26,7 +26,7 @@ void InterfaceObject::readPropertyDescription(uint8_t& propertyId, uint8_t& prop { // If propertyId is zero, propertyIndex shall be used. // Response: propertyIndex of received A_PropertyDescription_Read - if (propertyIndex >= 0 && propertyIndex < count) + if (propertyIndex < count) { desc = &descriptions[propertyIndex]; }