We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c42e16 commit 8f887a3Copy full SHA for 8f887a3
examples/fabric-bridge-app/linux/RpcServer.cpp
@@ -70,8 +70,8 @@ pw::Status FabricBridge::RemoveSynchronizedDevice(const chip_rpc_SynchronizedDev
70
NodeId nodeId = request.node_id;
71
ChipLogProgress(NotSpecified, "Received RemoveSynchronizedDevice: " ChipLogFormatX64, ChipLogValueX64(nodeId));
72
73
- int result = DeviceMgr().RemoveDeviceByNodeId(nodeId);
74
- if (result == -1)
+ int removed_idx = DeviceMgr().RemoveDeviceByNodeId(nodeId);
+ if (removed_idx < 0)
75
{
76
ChipLogError(NotSpecified, "Failed to remove device with nodeId=0x" ChipLogFormatX64, ChipLogValueX64(nodeId));
77
return pw::Status::NotFound();
0 commit comments