Remove unnecessary check

This commit is contained in:
nanosonde 2018-04-25 23:23:42 +02:00
parent d315aee70e
commit 7c7d0d0b5b

View File

@ -26,7 +26,7 @@ void InterfaceObject::readPropertyDescription(uint8_t& propertyId, uint8_t& prop
{ {
// If propertyId is zero, propertyIndex shall be used. // If propertyId is zero, propertyIndex shall be used.
// Response: propertyIndex of received A_PropertyDescription_Read // Response: propertyIndex of received A_PropertyDescription_Read
if (propertyIndex >= 0 && propertyIndex < count) if (propertyIndex < count)
{ {
desc = &descriptions[propertyIndex]; desc = &descriptions[propertyIndex];
} }