projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bfbbf9
)
elmcan_netdev_start_xmit(): Remove unnecessary skb->len check
author
norly
<ny-git@enpas.org>
Sat, 12 Mar 2022 18:19:32 +0000
(19:19 +0100)
committer
norly
<ny-git@enpas.org>
Sat, 12 Mar 2022 18:19:32 +0000
(19:19 +0100)
linux/net/can/af_can.c's can_send() guarantees this already.
module/elmcan.c
patch
|
blob
|
history
diff --git
a/module/elmcan.c
b/module/elmcan.c
index 5949a415537699dc97740967da5318c396584286..f358a46dafe86f3950be8a2ea15d8bfcb529746f 100644
(file)
--- a/
module/elmcan.c
+++ b/
module/elmcan.c
@@
-843,9
+843,6
@@
static netdev_tx_t elmcan_netdev_start_xmit(struct sk_buff *skb,
struct elmcan *elm = netdev_priv(dev);
struct can_frame *frame = (struct can_frame *)skb->data;
- if (skb->len != sizeof(struct can_frame))
- goto out;
-
if (!netif_running(dev)) {
netdev_warn(elm->dev, "xmit: iface is down.\n");
goto out;