Commit 47cda636 authored by Alessandro Rubini's avatar Alessandro Rubini

wr_nic: trivial whitespace fixes

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 11a2ef31
...@@ -32,12 +32,12 @@ void wrn_tx_tstamp_skb(struct wrn_dev *wrn, int desc) ...@@ -32,12 +32,12 @@ void wrn_tx_tstamp_skb(struct wrn_dev *wrn, int desc)
wrn_ppsg_read_time(wrn, &counter_ppsg, &utc); wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
/* We may be at the beginning og the next second */ /* We may be at the beginning og the next second */
if(counter_ppsg < d->cycles) if (counter_ppsg < d->cycles)
utc--; utc--;
ts.tv_sec = (s32)utc & 0x7fffffff; ts.tv_sec = (s32)utc & 0x7fffffff;
ts.tv_nsec = d->cycles * NSEC_PER_TICK; ts.tv_nsec = d->cycles * NSEC_PER_TICK;
if (! (d->valid & TS_INVALID)) { if (!(d->valid & TS_INVALID)) {
hwts = skb_hwtstamps(skb); hwts = skb_hwtstamps(skb);
hwts->hwtstamp = timespec_to_ktime(ts); hwts->hwtstamp = timespec_to_ktime(ts);
skb_tstamp_tx(skb, hwts); skb_tstamp_tx(skb, hwts);
...@@ -75,7 +75,7 @@ static int record_tstamp(struct wrn_dev *wrn, u32 tsval, u32 idreg, u32 r2) ...@@ -75,7 +75,7 @@ static int record_tstamp(struct wrn_dev *wrn, u32 tsval, u32 idreg, u32 r2)
wrn_ppsg_read_time(wrn, &counter_ppsg, &utc); wrn_ppsg_read_time(wrn, &counter_ppsg, &utc);
if(counter_ppsg < (tsval & 0xfffffff)) if (counter_ppsg < (tsval & 0xfffffff))
utc--; utc--;
ts.tv_sec = (s32)utc & 0x7fffffff; ts.tv_sec = (s32)utc & 0x7fffffff;
......
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