diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-03-15 16:26:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-09 16:37:13 -0400 |
commit | 88f10a176c7364a700c8638732e2b3110beaceb6 (patch) | |
tree | f5f3d765d4720f11bae943775706c6fd5f32c642 /drivers | |
parent | aa27a703ce258176a309be55c186c3f36e377a82 (diff) |
iwlwifi: remove un-needed parameter
get rid of un-needed parameter
Change-Id: I992741e7382a3dbced7f8413bf1d5f301029d576
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index f1226dbf789d..e7da3a50d82c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1178,7 +1178,6 @@ static void iwl_debug_config(struct iwl_priv *priv) | |||
1178 | static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, | 1178 | static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, |
1179 | const struct iwl_fw *fw) | 1179 | const struct iwl_fw *fw) |
1180 | { | 1180 | { |
1181 | int err = 0; | ||
1182 | struct iwl_priv *priv; | 1181 | struct iwl_priv *priv; |
1183 | struct ieee80211_hw *hw; | 1182 | struct ieee80211_hw *hw; |
1184 | struct iwl_op_mode *op_mode; | 1183 | struct iwl_op_mode *op_mode; |
@@ -1201,7 +1200,6 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, | |||
1201 | if (!hw) { | 1200 | if (!hw) { |
1202 | pr_err("%s: Cannot allocate network device\n", | 1201 | pr_err("%s: Cannot allocate network device\n", |
1203 | cfg(trans)->name); | 1202 | cfg(trans)->name); |
1204 | err = -ENOMEM; | ||
1205 | goto out; | 1203 | goto out; |
1206 | } | 1204 | } |
1207 | 1205 | ||
@@ -1273,26 +1271,24 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, | |||
1273 | IWL_INFO(priv, "Detected %s, REV=0x%X\n", | 1271 | IWL_INFO(priv, "Detected %s, REV=0x%X\n", |
1274 | cfg(priv)->name, trans(priv)->hw_rev); | 1272 | cfg(priv)->name, trans(priv)->hw_rev); |
1275 | 1273 | ||
1276 | err = iwl_trans_start_hw(trans(priv)); | 1274 | if (iwl_trans_start_hw(trans(priv))) |
1277 | if (err) | ||
1278 | goto out_free_traffic_mem; | 1275 | goto out_free_traffic_mem; |
1279 | 1276 | ||
1280 | /***************** | 1277 | /***************** |
1281 | * 3. Read EEPROM | 1278 | * 3. Read EEPROM |
1282 | *****************/ | 1279 | *****************/ |
1283 | err = iwl_eeprom_init(trans(priv), trans(priv)->hw_rev); | 1280 | /* Read the EEPROM */ |
1284 | /* Reset chip to save power until we load uCode during "up". */ | 1281 | if (iwl_eeprom_init(trans(priv), trans(priv)->hw_rev)) { |
1285 | iwl_trans_stop_hw(trans(priv)); | ||
1286 | if (err) { | ||
1287 | IWL_ERR(priv, "Unable to init EEPROM\n"); | 1282 | IWL_ERR(priv, "Unable to init EEPROM\n"); |
1288 | goto out_free_traffic_mem; | 1283 | goto out_free_traffic_mem; |
1289 | } | 1284 | } |
1290 | err = iwl_eeprom_check_version(priv); | 1285 | /* Reset chip to save power until we load uCode during "up". */ |
1291 | if (err) | 1286 | iwl_trans_stop_hw(trans(priv)); |
1287 | |||
1288 | if (iwl_eeprom_check_version(priv)) | ||
1292 | goto out_free_eeprom; | 1289 | goto out_free_eeprom; |
1293 | 1290 | ||
1294 | err = iwl_eeprom_init_hw_params(priv); | 1291 | if (iwl_eeprom_init_hw_params(priv)) |
1295 | if (err) | ||
1296 | goto out_free_eeprom; | 1292 | goto out_free_eeprom; |
1297 | 1293 | ||
1298 | /* extract MAC Address */ | 1294 | /* extract MAC Address */ |
@@ -1332,9 +1328,9 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, | |||
1332 | * 5. Setup priv | 1328 | * 5. Setup priv |
1333 | *******************/ | 1329 | *******************/ |
1334 | 1330 | ||
1335 | err = iwl_init_drv(priv); | 1331 | if (iwl_init_drv(priv)) |
1336 | if (err) | ||
1337 | goto out_free_eeprom; | 1332 | goto out_free_eeprom; |
1333 | |||
1338 | /* At this point both hw and priv are initialized. */ | 1334 | /* At this point both hw and priv are initialized. */ |
1339 | 1335 | ||
1340 | /******************** | 1336 | /******************** |
@@ -1367,15 +1363,12 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, | |||
1367 | * | 1363 | * |
1368 | * 7. Setup and register with mac80211 and debugfs | 1364 | * 7. Setup and register with mac80211 and debugfs |
1369 | **************************************************/ | 1365 | **************************************************/ |
1370 | err = iwlagn_mac_setup_register(priv, &fw->ucode_capa); | 1366 | if (iwlagn_mac_setup_register(priv, &fw->ucode_capa)) |
1371 | if (err) | ||
1372 | goto out_destroy_workqueue; | 1367 | goto out_destroy_workqueue; |
1373 | 1368 | ||
1374 | err = iwl_dbgfs_register(priv, DRV_NAME); | 1369 | if (iwl_dbgfs_register(priv, DRV_NAME)) |
1375 | if (err) | ||
1376 | IWL_ERR(priv, | 1370 | IWL_ERR(priv, |
1377 | "failed to create debugfs files. Ignoring error: %d\n", | 1371 | "failed to create debugfs files. Ignoring error\n"); |
1378 | err); | ||
1379 | 1372 | ||
1380 | return op_mode; | 1373 | return op_mode; |
1381 | 1374 | ||