can: dev: can_get_echo_skb(): factor out non sending code to __can_get_echo_skb()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 31 Oct 2018 09:37:46 +0000 (10:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:29 +0000 (09:37 +0100)
commit5877d2c0eac8f19ff8f4a8814708feb71b0fab27
tree5d99ce9d40f5e0da32c7c18a6a9c269f6de4c6b2
parent8d2aed6439cf41bcaee3d44eff5bfacb2bfb3039
can: dev: can_get_echo_skb(): factor out non sending code to __can_get_echo_skb()

commit a4310fa2f24687888ce80fdb0e88583561a23700 upstream.

This patch factors out all non sending parts of can_get_echo_skb() into
a seperate function __can_get_echo_skb(), so that it can be re-used in
an upcoming patch.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/dev.c
include/linux/can/dev.h