[PATCH v1 09/16] j1939: don't store msg_flags on the TX path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We do not actually use them.

Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/socket.c    | 1 -
 net/can/j1939/transport.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/net/can/j1939/socket.c b/net/can/j1939/socket.c
index cb5978b4146c..68d5894f9e33 100644
--- a/net/can/j1939/socket.c
+++ b/net/can/j1939/socket.c
@@ -813,7 +813,6 @@ static struct sk_buff *j1939_sk_alloc_skb(struct net_device *ndev,
 	memset(skcb, 0, sizeof(*skcb));
 	skcb->addr = jsk->addr;
 	skcb->priority = j1939_prio(sk->sk_priority);
-	skcb->msg_flags = msg->msg_flags;
 
 	if (msg->msg_name) {
 		struct sockaddr_can *addr = msg->msg_name;
diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c
index 9ca01d1130d5..1750377ece3f 100644
--- a/net/can/j1939/transport.c
+++ b/net/can/j1939/transport.c
@@ -1519,7 +1519,6 @@ struct j1939_session *j1939_tp_send(struct j1939_priv *priv,
 		session->pkt.last = session->pkt.total;
 
 	session->tskey = session->sk->sk_tskey++;
-	session->skcb.msg_flags |= MSG_DONTWAIT;
 
 	return session;
 }
-- 
2.20.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux