mkiss: remove redundant assignment of len to ax->mtu
Variable len is being assigned a value that is never read, hence the assignment is redundant and can be removed. Cleans up clang warning: drivers/net/hamradio/mkiss.c:443:3: warning: Value stored to 'len' is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
81ba4e1ac4
commit
28ef7de70d
1 changed files with 0 additions and 1 deletions
|
@ -440,7 +440,6 @@ static void ax_encaps(struct net_device *dev, unsigned char *icp, int len)
|
|||
ax_changedmtu(ax);
|
||||
|
||||
if (len > ax->mtu) { /* Sigh, shouldn't occur BUT ... */
|
||||
len = ax->mtu;
|
||||
printk(KERN_ERR "mkiss: %s: truncating oversized transmit packet!\n", ax->dev->name);
|
||||
dev->stats.tx_dropped++;
|
||||
netif_start_queue(dev);
|
||||
|
|
Loading…
Reference in a new issue