Commit 355d2836 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Grzegorz Daniluk

dev/minic: avoid forcing the 2038 bug on

both "sec" and "hwrs->sec" are 64 bits wide: don't forcibly trim
to 31 bit the value being assigned.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 4d694ca3
......@@ -197,7 +197,7 @@ int minic_rx_frame(struct wr_ethhdr *hdr, uint8_t * payload, uint32_t buf_size,
&& counter_ppsg < 250000000)
sec--;
hwts->sec = sec & 0x7fffffff;
hwts->sec = sec;
cntr_diff = (counter_r & F_COUNTER_MASK) - counter_f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment