Skip to content

Commit

Permalink
Remove single entrance protection for registerAttributeAccessOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Oct 26, 2021
1 parent 66f4ec6 commit c6cdf49
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/app/clusters/descriptor/descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ CHIP_ERROR DescriptorAttrAccess::Read(const ConcreteAttributePath & aPath, Attri
void MatterDescriptorPluginServerInitCallback(void)
{
#if CHIP_CLUSTER_CONFIG_ENABLE_COMPLEX_ATTRIBUTE_READ
static bool attrAccessRegistered = false;

if (!attrAccessRegistered)
{
registerAttributeAccessOverride(&gAttrAccess);
attrAccessRegistered = true;
}
registerAttributeAccessOverride(&gAttrAccess);
#endif
}

0 comments on commit c6cdf49

Please sign in to comment.