45a20c4af61ddd96d00f6a7ef4fc1bab1aab9c94
[openwrt/staging/blogic.git] /
1 From 88b21e30646ba263df647469c3af8c09e43a99d6 Mon Sep 17 00:00:00 2001
2 From: Marc Kleine-Budde <mkl@pengutronix.de>
3 Date: Mon, 7 Oct 2019 13:36:58 +0200
4 Subject: [PATCH] can: rx-offload: can_rx_offload_reset(): remove no-op
5 function
6
7 This patch removes the function can_rx_offload_reset(), as it does
8 nothing. If we ever need this function, add it back again.
9
10 Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
11 ---
12 drivers/net/can/rx-offload.c | 7 -------
13 include/linux/can/rx-offload.h | 1 -
14 2 files changed, 8 deletions(-)
15
16 --- a/drivers/net/can/rx-offload.c
17 +++ b/drivers/net/can/rx-offload.c
18 @@ -348,7 +348,6 @@ static int can_rx_offload_init_queue(str
19 offload->skb_queue_len_max *= 4;
20 skb_queue_head_init(&offload->skb_queue);
21
22 - can_rx_offload_reset(offload);
23 netif_napi_add(dev, &offload->napi, can_rx_offload_napi_poll, weight);
24
25 dev_dbg(dev->dev.parent, "%s: skb_queue_len_max=%d\n",
26 @@ -390,7 +389,6 @@ EXPORT_SYMBOL_GPL(can_rx_offload_add_fif
27
28 void can_rx_offload_enable(struct can_rx_offload *offload)
29 {
30 - can_rx_offload_reset(offload);
31 napi_enable(&offload->napi);
32 }
33 EXPORT_SYMBOL_GPL(can_rx_offload_enable);
34 @@ -401,8 +399,3 @@ void can_rx_offload_del(struct can_rx_of
35 skb_queue_purge(&offload->skb_queue);
36 }
37 EXPORT_SYMBOL_GPL(can_rx_offload_del);
38 -
39 -void can_rx_offload_reset(struct can_rx_offload *offload)
40 -{
41 -}
42 -EXPORT_SYMBOL_GPL(can_rx_offload_reset);
43 --- a/include/linux/can/rx-offload.h
44 +++ b/include/linux/can/rx-offload.h
45 @@ -44,7 +44,6 @@ unsigned int can_rx_offload_get_echo_skb
46 unsigned int idx, u32 timestamp);
47 int can_rx_offload_queue_tail(struct can_rx_offload *offload,
48 struct sk_buff *skb);
49 -void can_rx_offload_reset(struct can_rx_offload *offload);
50 void can_rx_offload_del(struct can_rx_offload *offload);
51 void can_rx_offload_enable(struct can_rx_offload *offload);
52