summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rxrpc/transport.c')
-rw-r--r--net/rxrpc/transport.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/rxrpc/transport.c b/net/rxrpc/transport.c
index 4268b38d92d2..8e57be2df936 100644
--- a/net/rxrpc/transport.c
+++ b/net/rxrpc/transport.c
@@ -9,7 +9,6 @@
* 2 of the License, or (at your option) any later version.
*/
-#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <rxrpc/transport.h>
@@ -330,10 +329,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 */
OpenPOWER on IntegriCloud