diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-09-02 19:26:37 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-05 09:37:02 +0200 |
commit | 9367fa08415a6168f8ee2b5bb373362d75bfa860 (patch) | |
tree | 9299d216d9efd5e2ec73c677f1277c0fb1cfb24b /net/sched | |
parent | e7ac4ea0fefb06b2aeb7751e71c25cdfe751c07c (diff) | |
download | linux-9367fa08415a6168f8ee2b5bb373362d75bfa860.tar.gz linux-9367fa08415a6168f8ee2b5bb373362d75bfa860.tar.bz2 linux-9367fa08415a6168f8ee2b5bb373362d75bfa860.zip |
net/sched: cbs: remove redundant assignment to variable port_rate
Variable port_rate is being initialized with a value that is never read
and is being re-assigned a little later on. The assignment is redundant
and hence can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_cbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_cbs.c b/net/sched/sch_cbs.c index 810645b5c086..93b58fde99b7 100644 --- a/net/sched/sch_cbs.c +++ b/net/sched/sch_cbs.c @@ -299,7 +299,7 @@ static void cbs_set_port_rate(struct net_device *dev, struct cbs_sched_data *q) { struct ethtool_link_ksettings ecmd; int speed = SPEED_10; - int port_rate = -1; + int port_rate; int err; err = __ethtool_get_link_ksettings(dev, &ecmd); |