backport to v1.5 esp_matter/data_model_provider: Remove path check from EventInfo Fixes #1731

This commit is contained in:
liyashuai
2026-03-12 11:37:45 +08:00
parent e5257b67bb
commit 2c4e8b6738
@@ -691,9 +691,6 @@ CHIP_ERROR provider::EventInfo(const ConcreteEventPath &path, EventEntry &eventI
if (auto *cluster = mRegistry.Get(path); cluster != nullptr) {
return cluster->EventInfo(path, eventInfo);
}
Status status = CheckDataModelPath(path);
VerifyOrReturnValue(status == Protocols::InteractionModel::Status::Success,
CHIP_ERROR_IM_GLOBAL_STATUS_VALUE(status));
eventInfo.readPrivilege = MatterGetAccessPrivilegeForReadEvent(path.mClusterId, path.mEventId);
return CHIP_NO_ERROR;
}