Skip to content

Commit 1015656

Browse files
yufengwangcapull[bot]
authored andcommitted
Fix CommissionNode comand alway return failure (#34898)
1 parent 5e3be97 commit 1015656

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/clusters/commissioner-control-server/commissioner-control-server.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@ bool emberAfCommissionerControlClusterCommissionNodeCallback(
236236
// Set IP address and port in the CommissionNodeInfo struct
237237
commissionNodeInfo->port = commandData.port;
238238
err = commissionNodeInfo->ipAddress.SetIPAddress(commandData.ipAddress);
239-
SuccessOrExit(err == CHIP_NO_ERROR);
239+
SuccessOrExit(err);
240240

241241
// Validate the commission node command.
242242
err = delegate->ValidateCommissionNodeCommand(sourceNodeId, requestId);
243-
SuccessOrExit(err == CHIP_NO_ERROR);
243+
SuccessOrExit(err);
244244

245245
// Populate the parameters for the commissioning window
246246
err = delegate->GetCommissioningWindowParams(commissionNodeInfo->params);
247-
SuccessOrExit(err == CHIP_NO_ERROR);
247+
SuccessOrExit(err);
248248

249249
// Add the response for the commissioning window.
250250
AddReverseOpenCommissioningWindowResponse(commandObj, commandPath, commissionNodeInfo->params);

0 commit comments

Comments
 (0)