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)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 9 Nov 2018 16:20:34 +0000 (17:20 +0100)
commita4310fa2f24687888ce80fdb0e88583561a23700
treec79ffb7b44aedca6909cb06a43d8e6eaca4c9766
parente05237f9da42ee52e73acea0bb082d788e111229
can: dev: can_get_echo_skb(): factor out non sending code to __can_get_echo_skb()

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>
drivers/net/can/dev.c
include/linux/can/dev.h