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 authored Oct 27, 2021
1 parent 30fd6f9 commit acae0e9
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 acae0e9

Please sign in to comment.