iwlegacy: fix error return code in il3945_pci_probe()

Fix to return a negative error code in the il3945_hw_set_hw_params() error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Wei Yongjun 2013-06-05 10:16:33 +08:00 committed by John W. Linville
parent c9e2404c9f
commit ca3ae51396
1 changed files with 2 additions and 1 deletions

View File

@ -3727,7 +3727,8 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
* 5. Setup HW Constants * 5. Setup HW Constants
* ********************/ * ********************/
/* Device-specific setup */ /* Device-specific setup */
if (il3945_hw_set_hw_params(il)) { err = il3945_hw_set_hw_params(il);
if (err) {
IL_ERR("failed to set hw settings\n"); IL_ERR("failed to set hw settings\n");
goto out_eeprom_free; goto out_eeprom_free;
} }