Skip to content

Commit 8f887a3

Browse files
Update examples/fabric-bridge-app/linux/RpcServer.cpp
Co-authored-by: Andrei Litvin <andy314@gmail.com>
1 parent 2c42e16 commit 8f887a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/fabric-bridge-app/linux/RpcServer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ pw::Status FabricBridge::RemoveSynchronizedDevice(const chip_rpc_SynchronizedDev
7070
NodeId nodeId = request.node_id;
7171
ChipLogProgress(NotSpecified, "Received RemoveSynchronizedDevice: " ChipLogFormatX64, ChipLogValueX64(nodeId));
7272

73-
int result = DeviceMgr().RemoveDeviceByNodeId(nodeId);
74-
if (result == -1)
73+
int removed_idx = DeviceMgr().RemoveDeviceByNodeId(nodeId);
74+
if (removed_idx < 0)
7575
{
7676
ChipLogError(NotSpecified, "Failed to remove device with nodeId=0x" ChipLogFormatX64, ChipLogValueX64(nodeId));
7777
return pw::Status::NotFound();

0 commit comments

Comments
 (0)