[PATCH v1 21/25] j1939: transport: don't use J1939_XTP_ABORT_GENERIC for extd session

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

 



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




[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