can: rx-offload: can_rx_offload_irq_finish(): directly call napi_schedule()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 7 May 2021 15:58:30 +0000 (17:58 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 25 Jul 2021 09:36:25 +0000 (11:36 +0200)
Instead of calling can_rx_offload_schedule() call napi_schedule()
directly. As this was the last use of can_rx_offload_schedule() remove
this helper function.

Link: https://lore.kernel.org/r/20210724204745.736053-3-mkl@pengutronix.de
Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/rx-offload.c
include/linux/can/rx-offload.h

index d0bdb6db3a5759841943dc5af20856687bcad086..82ade3aa5c136162453fb7fad29e9fef37bcad1d 100644 (file)
@@ -295,7 +295,7 @@ void can_rx_offload_irq_finish(struct can_rx_offload *offload)
                netdev_dbg(offload->dev, "%s: queue_len=%d\n",
                           __func__, queue_len);
 
-       can_rx_offload_schedule(offload);
+       napi_schedule(&offload->napi);
 }
 EXPORT_SYMBOL_GPL(can_rx_offload_irq_finish);
 
index d71c938e17d03e9a4b6ec525bcc624e1fb3d27ec..516f64df0ebc0cf409c52827abf5a6664bdc7656 100644 (file)
@@ -53,11 +53,6 @@ void can_rx_offload_irq_finish(struct can_rx_offload *offload);
 void can_rx_offload_del(struct can_rx_offload *offload);
 void can_rx_offload_enable(struct can_rx_offload *offload);
 
-static inline void can_rx_offload_schedule(struct can_rx_offload *offload)
-{
-       napi_schedule(&offload->napi);
-}
-
 static inline void can_rx_offload_disable(struct can_rx_offload *offload)
 {
        napi_disable(&offload->napi);