OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5780148
)
can: gs_usb: gs_usb_set_timestamp(): remove return statements form void function
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Thu, 6 Jul 2023 11:04:45 +0000
(13:04 +0200)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Fri, 28 Jul 2023 06:52:03 +0000
(08:52 +0200)
Remove the return statements from void gs_usb_set_timestamp()
function, as it's not generally useful.
Link:
https://lore.kernel.org/all/20230718-gs_usb-cleanups-v1-3-c3b9154ec605@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/usb/gs_usb.c
b/drivers/net/can/usb/gs_usb.c
index
966e00e
..
1e08d38
100644
(file)
--- a/
drivers/net/can/usb/gs_usb.c
+++ b/
drivers/net/can/usb/gs_usb.c
@@
-520,8
+520,6
@@
static void gs_usb_set_timestamp(struct gs_can *dev, struct sk_buff *skb,
timestamp = le32_to_cpu(hf->classic_can_ts->timestamp_us);
gs_usb_skb_set_timestamp(dev, skb, timestamp);
-
- return;
}
static void gs_usb_receive_bulk_callback(struct urb *urb)