Skip to content

Commit 8f1d670

Browse files
csanchezdllxiaoxiang781216
authored andcommitted
arch/arm/src/stm32h7: unassigned ret variable in SIOCSCANBITRATE.
This problem was introduced in #16199 Signed-off-by: Carlos Sanchez <[email protected]>
1 parent b5144af commit 8f1d670

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: arch/arm/src/stm32h7/stm32_fdcan_sock.c

+1
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,7 @@ static int fdcan_netdev_ioctl(struct net_driver_s *dev, int cmd,
19721972
#ifdef CONFIG_NET_CAN_CANFD
19731973
priv->data_timing.bitrate = req->data_bitrate * 1000;
19741974
#endif
1975+
ret = OK;
19751976
}
19761977
break;
19771978
#endif /* CONFIG_NETDEV_CAN_BITRATE_IOCTL */

0 commit comments

Comments
 (0)