Commit 9367fa08 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e7ac4ea0
...@@ -299,7 +299,7 @@ static void cbs_set_port_rate(struct net_device *dev, struct cbs_sched_data *q) ...@@ -299,7 +299,7 @@ static void cbs_set_port_rate(struct net_device *dev, struct cbs_sched_data *q)
{ {
struct ethtool_link_ksettings ecmd; struct ethtool_link_ksettings ecmd;
int speed = SPEED_10; int speed = SPEED_10;
int port_rate = -1; int port_rate;
int err; int err;
err = __ethtool_get_link_ksettings(dev, &ecmd); err = __ethtool_get_link_ksettings(dev, &ecmd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment