File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -1246,7 +1246,6 @@ static int ns83820_get_settings(struct net_device *ndev,
1246
1246
{
1247
1247
struct ns83820 * dev = PRIV (ndev );
1248
1248
u32 cfg , tanar , tbicr ;
1249
- int have_optical = 0 ;
1250
1249
int fullduplex = 0 ;
1251
1250
1252
1251
/*
@@ -1267,15 +1266,7 @@ static int ns83820_get_settings(struct net_device *ndev,
1267
1266
tanar = readl (dev -> base + TANAR );
1268
1267
tbicr = readl (dev -> base + TBICR );
1269
1268
1270
- if (dev -> CFG_cache & CFG_TBI_EN ) {
1271
- /* we have an optical interface */
1272
- have_optical = 1 ;
1273
- fullduplex = (cfg & CFG_DUPSTS ) ? 1 : 0 ;
1274
-
1275
- } else {
1276
- /* We have copper */
1277
- fullduplex = (cfg & CFG_DUPSTS ) ? 1 : 0 ;
1278
- }
1269
+ fullduplex = (cfg & CFG_DUPSTS ) ? 1 : 0 ;
1279
1270
1280
1271
cmd -> supported = SUPPORTED_Autoneg ;
1281
1272
You can’t perform that action at this time.
0 commit comments