Skip to content
Commit 9b18f4a7 authored by Kweh Hock Leong's avatar Kweh Hock Leong Committed by Christopher Friedt
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 3f958347
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment