Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> --- net/can/j1939/transport.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c index 629d12770cfb..f3093b745988 100644 --- a/net/can/j1939/transport.c +++ b/net/can/j1939/transport.c @@ -470,10 +470,7 @@ static int j1939_xtp_tx_abort(struct j1939_priv *priv, memset(dat, 0xff, sizeof(dat)); dat[0] = J1939_TP_CMD_ABORT; - if (extd) - dat[1] = J1939_XTP_ABORT_GENERIC; - else - dat[1] = err; + dat[1] = err; return j1939_xtp_do_tx_ctl(priv, re_skcb, extd, swap_src_dst, pgn, dat); } -- 2.20.1