Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: project-chip/connectedhomeip
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f227584f75ef509677ce957c8deccc046f3b21c9
Choose a base ref
..
head repository: project-chip/connectedhomeip
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dec1788f273fc96f6cad63c6fd683d34b1b6ef1e
Choose a head ref
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/platform/DeviceInfoProvider.cpp
3 changes: 1 addition & 2 deletions src/platform/DeviceInfoProvider.cpp
Original file line number Diff line number Diff line change
@@ -85,10 +85,9 @@ CHIP_ERROR DeviceInfoProvider::AppendUserLabel(EndpointId endpoint, const UserLa
// Fetch current list length
ReturnErrorOnFailure(GetUserLabelLength(endpoint, length));

// Enforce maximum entry limit
if (length >= kMaxUserLabelListLength)
{
return CHIP_ERROR_NO_MEMORY; // Return an error if the limit is exceeded
return CHIP_ERROR_NO_MEMORY;
}

// Add the new entry to the list