Skip to content
Commit e7f399f4 authored by Stephan Linz's avatar Stephan Linz Committed by Fabio Baltieri
Browse files

drivers: can: avoid integer overflow in expression



Change the integer arithmetic to divide first before multiply.

The muliplication of sys_clock_hw_cycles_per_sec() by ten leads
to a really big number on boards with high-speed clocking, thus
to the overflow warning, and to errors for integration tests.

Fixes: #63678

Signed-off-by: default avatarStephan Linz <linz@li-pro.net>
parent f8e812aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment