瀏覽代碼

scsi: aic94xx: Add missing error code assignment before test

It is likely that checking the result of 'pci_write_config_dword' is
expected here.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Christophe JAILLET 9 年之前
父節點
當前提交
39f2757404
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/scsi/aic94xx/aic94xx_hwi.c

+ 1 - 1
drivers/scsi/aic94xx/aic94xx_hwi.c

@@ -632,7 +632,7 @@ int asd_init_hw(struct asd_ha_struct *asd_ha)
 			   pci_name(asd_ha->pcidev));
 		return err;
 	}
-	pci_write_config_dword(asd_ha->pcidev, PCIC_HSTPCIX_CNTRL,
+	err = pci_write_config_dword(asd_ha->pcidev, PCIC_HSTPCIX_CNTRL,
 					v | SC_TMR_DIS);
 	if (err) {
 		asd_printk("couldn't disable split completion timer of %s\n",