diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-29 13:30:25 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-01 12:09:45 +0900 |
commit | 28ef7de70dde7762cb81eecf411e2c78a25c457d (patch) | |
tree | 45bb8a25c2bfe42a39676d82c15f7f67640e4f62 /drivers/net/hamradio | |
parent | 81ba4e1ac4f1d3e9d980ca0f003dd3038559b3fa (diff) | |
download | op-kernel-dev-28ef7de70dde7762cb81eecf411e2c78a25c457d.zip op-kernel-dev-28ef7de70dde7762cb81eecf411e2c78a25c457d.tar.gz |
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>
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r-- | drivers/net/hamradio/mkiss.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index 54bf8e6..c180b48 100644 --- a/drivers/net/hamradio/mkiss.c +++ b/drivers/net/hamradio/mkiss.c @@ -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); |