mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
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
@ -440,7 +440,6 @@ static void ax_encaps(struct net_device *dev, unsigned char *icp, int len)
|
|||||||
ax_changedmtu(ax);
|
ax_changedmtu(ax);
|
||||||
|
|
||||||
if (len > ax->mtu) { /* Sigh, shouldn't occur BUT ... */
|
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);
|
printk(KERN_ERR "mkiss: %s: truncating oversized transmit packet!\n", ax->dev->name);
|
||||||
dev->stats.tx_dropped++;
|
dev->stats.tx_dropped++;
|
||||||
netif_start_queue(dev);
|
netif_start_queue(dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user