diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-05-07 17:58:30 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-07-25 11:36:25 +0200 |
commit | 1e0d8e507ea42dd37f52636db300de7ea7118012 (patch) | |
tree | 2fff4a2145cea3ff38ed7a217a48b63efbe3143a | |
parent | c757096ea1033c46ab768709847f7776b7e92a92 (diff) | |
download | linux-stable-1e0d8e507ea42dd37f52636db300de7ea7118012.tar.gz linux-stable-1e0d8e507ea42dd37f52636db300de7ea7118012.tar.bz2 linux-stable-1e0d8e507ea42dd37f52636db300de7ea7118012.zip |
can: rx-offload: can_rx_offload_irq_finish(): directly call napi_schedule()
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>
-rw-r--r-- | drivers/net/can/dev/rx-offload.c | 2 | ||||
-rw-r--r-- | include/linux/can/rx-offload.h | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/can/dev/rx-offload.c b/drivers/net/can/dev/rx-offload.c index d0bdb6db3a57..82ade3aa5c13 100644 --- a/drivers/net/can/dev/rx-offload.c +++ b/drivers/net/can/dev/rx-offload.c @@ -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); diff --git a/include/linux/can/rx-offload.h b/include/linux/can/rx-offload.h index d71c938e17d0..516f64df0ebc 100644 --- a/include/linux/can/rx-offload.h +++ b/include/linux/can/rx-offload.h @@ -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); |