Skip to content

Commit 1e0d8e5

Browse files
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/[email protected] Tested-by: Oleksij Rempel <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent c757096 commit 1e0d8e5

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

drivers/net/can/dev/rx-offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void can_rx_offload_irq_finish(struct can_rx_offload *offload)
295295
netdev_dbg(offload->dev, "%s: queue_len=%d\n",
296296
__func__, queue_len);
297297

298-
can_rx_offload_schedule(offload);
298+
napi_schedule(&offload->napi);
299299
}
300300
EXPORT_SYMBOL_GPL(can_rx_offload_irq_finish);
301301

include/linux/can/rx-offload.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ void can_rx_offload_irq_finish(struct can_rx_offload *offload);
5353
void can_rx_offload_del(struct can_rx_offload *offload);
5454
void can_rx_offload_enable(struct can_rx_offload *offload);
5555

56-
static inline void can_rx_offload_schedule(struct can_rx_offload *offload)
57-
{
58-
napi_schedule(&offload->napi);
59-
}
60-
6156
static inline void can_rx_offload_disable(struct can_rx_offload *offload)
6257
{
6358
napi_disable(&offload->napi);

0 commit comments

Comments
 (0)