[PATCH v1 22/25] j1939: transport: j1939_tp_send: remove j1939_session_cancel

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

 



j1939_session_cancel() is relevant only if we want to send the abort
message to via CAN. Since we are not doing it anyway, remove this call.

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

diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c
index f3093b745988..266d4b1bc295 100644
--- a/net/can/j1939/transport.c
+++ b/net/can/j1939/transport.c
@@ -1297,7 +1297,6 @@ struct j1939_session *j1939_tp_send(struct j1939_priv *priv,
 
  failed:
 	j1939_session_timers_cancel(session);
-	j1939_session_cancel(session, J1939_XTP_ABORT_NO_ERROR);
 	j1939_session_put(session);
 	return ERR_PTR(ret);
 }
-- 
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