]> git.baikalelectronics.ru Git - kernel.git/commit
can: slcan: use the alloc_can_skb() helper
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Tue, 28 Jun 2022 16:31:27 +0000 (18:31 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 3 Jul 2022 09:34:21 +0000 (11:34 +0200)
commitbca6750e037af02ca065fc1082d03a1f974622c6
tree17aba001580a5b7ce228af49ba61971b4abb6c0b
parente4b1d1d4e176c7a7541fc0732e4647199f487017
can: slcan: use the alloc_can_skb() helper

It is used successfully by most (if not all) CAN device drivers. It
allows to remove replicated code.

Link: https://lore.kernel.org/all/20220628163137.413025-4-dario.binacchi@amarulasolutions.com
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Tested-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/slcan.c