Skip to content

Commit

Permalink
can: rx-offload: can_rx_offload_irq_finish(): directly call napi_sche…
Browse files Browse the repository at this point in the history
…dule()

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/[email protected]
Tested-by: Oleksij Rempel <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
marckleinebudde committed Jul 25, 2021
1 parent c757096 commit 1e0d8e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/net/can/dev/rx-offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
5 changes: 0 additions & 5 deletions include/linux/can/rx-offload.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e0d8e5

Please sign in to comment.