Skip to content

Commit

Permalink
Reduce codesize for door locks a bit more. (#34263)
Browse files Browse the repository at this point in the history
There is no need for SupportsAliroProvisioning checks in Aliro command
handlers. If we got into that code, that means that we recognized the command ID
on the relevant endpoint's Door Lock cluster, and if we passed cert that means
that we had the right feature map bit set too.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Aug 13, 2024
1 parent 1283d48 commit 1795772
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/app/clusters/door-lock-server/door-lock-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3990,14 +3990,6 @@ void DoorLockServer::clearAliroReaderConfigCommandHandler(CommandHandler * comma
EndpointId endpointID = commandPath.mEndpointId;
ChipLogProgress(Zcl, "[ClearAliroReaderConfig] Incoming command [endpointId=%d]", endpointID);

// If Aliro Provisioning feature is not supported, return UNSUPPORTED_COMMAND.
if (!SupportsAliroProvisioning(endpointID))
{
ChipLogProgress(Zcl, "[ClearAliroReaderConfig] Aliro Provisioning is not supported [endpointId=%d]", endpointID);
commandObj->AddStatus(commandPath, Status::UnsupportedCommand);
return;
}

Delegate * delegate = GetDelegate(endpointID);
if (!delegate)
{
Expand Down

0 comments on commit 1795772

Please sign in to comment.