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