Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: peak_usb: remove unused/legacy peak_usb_netif_rx() function

Remove unused/legacy peak_usb_netif_rx() function (not longer used
since commit 28e0a70cede3 ("can: peak_usb: CANFD: store 64-bits hw
timestamps").

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Link: https://lore.kernel.org/all/20230721180758.26199-1-ps.report@gmx.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Peter Seiderer and committed by
Marc Kleine-Budde
74dedbd7 e58ee933

-15
-13
drivers/net/can/usb/peak_usb/pcan_usb_core.c
··· 214 214 } 215 215 } 216 216 217 - /* 218 - * post received skb after having set any hw timestamp 219 - */ 220 - int peak_usb_netif_rx(struct sk_buff *skb, 221 - struct peak_time_ref *time_ref, u32 ts_low) 222 - { 223 - struct skb_shared_hwtstamps *hwts = skb_hwtstamps(skb); 224 - 225 - peak_usb_get_ts_time(time_ref, ts_low, &hwts->hwtstamp); 226 - 227 - return netif_rx(skb); 228 - } 229 - 230 217 /* post received skb with native 64-bit hw timestamp */ 231 218 int peak_usb_netif_rx_64(struct sk_buff *skb, u32 ts_low, u32 ts_high) 232 219 {
-2
drivers/net/can/usb/peak_usb/pcan_usb_core.h
··· 142 142 void peak_usb_update_ts_now(struct peak_time_ref *time_ref, u32 ts_now); 143 143 void peak_usb_set_ts_now(struct peak_time_ref *time_ref, u32 ts_now); 144 144 void peak_usb_get_ts_time(struct peak_time_ref *time_ref, u32 ts, ktime_t *tv); 145 - int peak_usb_netif_rx(struct sk_buff *skb, 146 - struct peak_time_ref *time_ref, u32 ts_low); 147 145 int peak_usb_netif_rx_64(struct sk_buff *skb, u32 ts_low, u32 ts_high); 148 146 void peak_usb_async_complete(struct urb *urb); 149 147 void peak_usb_restart_complete(struct peak_usb_device *dev);