Skip to content
Commit ea43f892 authored by Kweh Hock Leong's avatar Kweh Hock Leong Committed by Carles Cufí
Browse files

net: gptp: Fix type mismatch calculation error in gptp_mi



NSEC_PER_SEC is an unsigned integer macro. Thus, -NSEC_PER_SEC will be
treated as unsigned integer as well which lead to calculation error on
64bits integer variables. Added the correct type casting into the formula
to fix the calculation error.

Signed-off-by: default avatarKweh Hock Leong <hock.leong.kweh@intel.com>
parent 586ba9fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment