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 and pull[bot] committed Nov 23, 2021
1 parent 30b1bc2 commit 1139344
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 1139344

Please sign in to comment.