diff options
Diffstat (limited to 'drivers/net/chelsio/cxgb2.c')
-rw-r--r-- | drivers/net/chelsio/cxgb2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/chelsio/cxgb2.c b/drivers/net/chelsio/cxgb2.c index bb11b111335b..689b91c77465 100644 --- a/drivers/net/chelsio/cxgb2.c +++ b/drivers/net/chelsio/cxgb2.c | |||
@@ -1292,9 +1292,8 @@ static int t1_clock(struct adapter *adapter, int mode) | |||
1292 | if (!t1_is_T1B(adapter)) | 1292 | if (!t1_is_T1B(adapter)) |
1293 | return -ENODEV; /* Can't re-clock this chip. */ | 1293 | return -ENODEV; /* Can't re-clock this chip. */ |
1294 | 1294 | ||
1295 | if (mode & 2) { | 1295 | if (mode & 2) |
1296 | return 0; /* show current mode. */ | 1296 | return 0; /* show current mode. */ |
1297 | } | ||
1298 | 1297 | ||
1299 | if ((adapter->t1powersave & 1) == (mode & 1)) | 1298 | if ((adapter->t1powersave & 1) == (mode & 1)) |
1300 | return -EALREADY; /* ASIC already running in mode. */ | 1299 | return -EALREADY; /* ASIC already running in mode. */ |