Commit 4d694ca3 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Grzegorz Daniluk

trivial: lib/net.c: change operator

This is a logic &, not an aritmetic one. So "&&" not "&".  The change
has no effect, because the two operands are verified to always be 0 or
1, but what we had was conceptually wrong and forced me to verify.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent a2d89229
......@@ -252,7 +252,7 @@ int ptpd_netif_recvfrom(struct wrpc_socket *s, struct wr_sockaddr *from, void *d
rx_timestamp->sec = hwts.sec;
rx_timestamp->nsec = hwts.nsec;
rx_timestamp->phase = 0;
rx_timestamp->correct = hwts.valid & (!spll_busy);
rx_timestamp->correct = hwts.valid && (!spll_busy);
ptpd_netif_linearize_rx_timestamp(rx_timestamp,
rx_timestamp->raw_phase,
......
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