summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2022-03-12 19:19:32 +0100
committernorly <ny-git@enpas.org>2022-03-12 19:19:32 +0100
commit5c6b774682a59c5dd948f03560a1f9580f198fe5 (patch)
tree298a411635c3a7441118c3fa56ea44aad4d89da5
parent6bfbbf99532c2a21098c6af69fdc85c5bfc71219 (diff)
elmcan_netdev_start_xmit(): Remove unnecessary skb->len check
linux/net/can/af_can.c's can_send() guarantees this already.
-rw-r--r--module/elmcan.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/module/elmcan.c b/module/elmcan.c
index 5949a41..f358a46 100644
--- 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;