aboutsummaryrefslogtreecommitdiff
path: root/net/rxrpc/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rxrpc/transport.c')
-rw-r--r--net/rxrpc/transport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/rxrpc/transport.c b/net/rxrpc/transport.c
index 4268b38d92d..ff5f4f33308 100644
--- a/net/rxrpc/transport.c
+++ b/net/rxrpc/transport.c
@@ -330,10 +330,10 @@ static int rxrpc_incoming_msg(struct rxrpc_transport *trans,
msg->state = RXRPC_MSG_RECEIVED;
skb_get_timestamp(pkt, &msg->stamp);
if (msg->stamp.tv_sec == 0) {
- do_gettimeofday(&msg->stamp);
- if (pkt->sk)
+ do_gettimeofday(&msg->stamp);
+ if (pkt->sk)
sock_enable_timestamp(pkt->sk);
- }
+ }
msg->seq = ntohl(msg->hdr.seq);
/* attach the packet */