Skip to content

Commit 2d52d2c

Browse files
tomaszkob89rlubos
authored andcommitted
net: openthread: rpc: fix clang warning
This commit fixes build warning related to unused variables. Signed-off-by: Tomasz Kobylarz <[email protected]>
1 parent f427b80 commit 2d52d2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

subsys/net/openthread/rpc/client/ot_rpc_if.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ static int ot_rpc_l2_enable(struct net_if *iface, bool state)
172172
net_if_set_link_addr(iface, (uint8_t *)otLinkGetExtendedAddress(NULL)->m8,
173173
OT_EXT_ADDRESS_SIZE, NET_LINK_IEEE802154);
174174
update_netif_addrs(iface);
175-
otSetStateChangedCallback(NULL, ot_state_changed_handler, iface);
175+
if (otSetStateChangedCallback(NULL, ot_state_changed_handler, iface)) {
176+
NET_ERR("otSetStateChangedCallback failed");
177+
}
176178
}
177179

178180
return 0;

0 commit comments

Comments
 (0)