Skip to content

Commit 1e7f993

Browse files
Reduce codesize for door locks a bit more.
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.
1 parent 9d3d8d2 commit 1e7f993

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/app/clusters/door-lock-server/door-lock-server.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -3990,14 +3990,6 @@ void DoorLockServer::clearAliroReaderConfigCommandHandler(CommandHandler * comma
39903990
EndpointId endpointID = commandPath.mEndpointId;
39913991
ChipLogProgress(Zcl, "[ClearAliroReaderConfig] Incoming command [endpointId=%d]", endpointID);
39923992

3993-
// If Aliro Provisioning feature is not supported, return UNSUPPORTED_COMMAND.
3994-
if (!SupportsAliroProvisioning(endpointID))
3995-
{
3996-
ChipLogProgress(Zcl, "[ClearAliroReaderConfig] Aliro Provisioning is not supported [endpointId=%d]", endpointID);
3997-
commandObj->AddStatus(commandPath, Status::UnsupportedCommand);
3998-
return;
3999-
}
4000-
40013993
Delegate * delegate = GetDelegate(endpointID);
40023994
if (!delegate)
40033995
{

0 commit comments

Comments
 (0)