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>
This commit is contained in:
parent
e7ac4ea0fe
commit
9367fa0841
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue