Skip to content

Commit 063cf14

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Remove incorrect comments in WriteHandler. (#17606)
We're not parsing into a "cluster info" and we are not ignoring CHIP_END_OF_TLV. The comments simply do not match the code.
1 parent 28f10b7 commit 063cf14

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/app/WriteHandler.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@ CHIP_ERROR WriteHandler::ProcessAttributeDataIBs(TLV::TLVReader & aAttributeData
306306
err = element.GetPath(&attributePath);
307307
SuccessOrExit(err);
308308

309-
// We are using the feature that the parser won't touch the value if the field does not exist, since all fields in the
310-
// cluster info will be invalid / wildcard, it is safe ignore CHIP_END_OF_TLV directly.
311-
312309
err = attributePath.GetEndpoint(&(dataAttributePath.mEndpointId));
313310
SuccessOrExit(err);
314311

@@ -424,9 +421,6 @@ CHIP_ERROR WriteHandler::ProcessGroupAttributeDataIBs(TLV::TLVReader & aAttribut
424421
err = element.GetPath(&attributePath);
425422
SuccessOrExit(err);
426423

427-
// We are using the feature that the parser won't touch the value if the field does not exist, since all fields in the
428-
// cluster info will be invalid / wildcard, it is safe to ignore CHIP_END_OF_TLV.
429-
430424
err = attributePath.GetCluster(&(dataAttributePath.mClusterId));
431425
SuccessOrExit(err);
432426

0 commit comments

Comments
 (0)