Commit 45c91fb2 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

liquidio: remove set but not used variable 'is25G'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/cavium/liquidio/lio_ethtool.c: In function 'lio_set_link_ksettings':
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c:392:6: warning:
 variable 'is25G' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0ec45680
...@@ -389,18 +389,14 @@ static int lio_set_link_ksettings(struct net_device *netdev, ...@@ -389,18 +389,14 @@ static int lio_set_link_ksettings(struct net_device *netdev,
struct lio *lio = GET_LIO(netdev); struct lio *lio = GET_LIO(netdev);
struct oct_link_info *linfo; struct oct_link_info *linfo;
struct octeon_device *oct; struct octeon_device *oct;
u32 is25G = 0;
oct = lio->oct_dev; oct = lio->oct_dev;
linfo = &lio->linfo; linfo = &lio->linfo;
if (oct->subsystem_id == OCTEON_CN2350_25GB_SUBSYS_ID || if (!(oct->subsystem_id == OCTEON_CN2350_25GB_SUBSYS_ID ||
oct->subsystem_id == OCTEON_CN2360_25GB_SUBSYS_ID) { oct->subsystem_id == OCTEON_CN2360_25GB_SUBSYS_ID))
is25G = 1;
} else {
return -EOPNOTSUPP; return -EOPNOTSUPP;
}
if (oct->no_speed_setting) { if (oct->no_speed_setting) {
dev_err(&oct->pci_dev->dev, "%s: Changing speed is not supported\n", dev_err(&oct->pci_dev->dev, "%s: Changing speed is not supported\n",
......
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