Skip to content

Commit bbd729e

Browse files
committed
review changes
1 parent d0c5c4e commit bbd729e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/app/clusters/thread-border-router-management-server/thread-border-router-management-server.cpp

+1-10
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,7 @@ CHIP_ERROR ServerInstance::Read(const ConcreteReadAttributePath & aPath, Attribu
291291
default:
292292
break;
293293
}
294-
if (status == CHIP_ERROR_NO_MEMORY)
295-
{
296-
// If the status returned by Encode function is CHIP_ERROR_NO_MEMORY, map it to IM status ResourceExhausted
297-
return CHIP_IM_GLOBAL_STATUS(ResourceExhausted);
298-
}
299-
if (status != CHIP_NO_ERROR)
300-
{
301-
return CHIP_IM_GLOBAL_STATUS(Failure);
302-
}
303-
return CHIP_NO_ERROR;
294+
return status;
304295
}
305296

306297
void ServerInstance::CommitSavedBreadcrumb()

0 commit comments

Comments
 (0)