drivers/net/wan/x25_asy: Remove an unnecessary x25_type_trans call
authorXie He <xie.he.0141@gmail.com>
Sat, 12 Sep 2020 02:18:07 +0000 (19:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 21:41:02 +0000 (14:41 -0700)
commit4b4683853507128ed78e255aa0b1ef2b1bccba41
tree562bdd1421ccdc33a27668d43510984104590329
parent2de79ee27fdb52626ac4ac48ec6d8d52ba6f9047
drivers/net/wan/x25_asy: Remove an unnecessary x25_type_trans call

x25_type_trans only needs to be called before we call netif_rx to pass
the skb to upper layers.

It does not need to be called before lapb_data_received. The LAPB module
does not need the fields that are set by calling it.

In the other two X.25 drivers - lapbether and hdlc_x25. x25_type_trans
is only called before netif_rx and not before lapb_data_received.

Cc: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: Xie He <xie.he.0141@gmail.com>
Acked-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/x25_asy.c