Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca3ae513 authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c9e2404c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3727,7 +3727,8 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
	 * 5. Setup HW Constants
	 * ********************/
	/* 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");
		goto out_eeprom_free;
	}