scsi: aic94xx: Add missing error code assignment before test
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 9 Aug 2016 11:30:02 +0000 (13:30 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Aug 2016 03:39:25 +0000 (23:39 -0400)
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>
drivers/scsi/aic94xx/aic94xx_hwi.c

index 0fdc98b..7c713f7 100644 (file)
@@ -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",