mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix bug in Flash access code
Submitted by: David C Somayajulu
This commit is contained in:
parent
622ceeb3fb
commit
e43ab9b98e
1 changed files with 5 additions and 5 deletions
|
|
@ -321,7 +321,7 @@ qla_get_fdt(qla_host_t *ha)
|
|||
|
||||
} while ((count < 10000) && (data32 != 0x6));
|
||||
|
||||
if (count == 0 && data32 != 0x6) {
|
||||
if (data32 != 0x6) {
|
||||
qla_sem_unlock(ha, Q8_FLASH_UNLOCK);
|
||||
device_printf(ha->pci_dev,
|
||||
"%s: Poll Q8_FLASH_STATUS failed\n",
|
||||
|
|
@ -401,7 +401,7 @@ qla_flash_write_enable(qla_host_t *ha, int enable)
|
|||
|
||||
} while ((count < 10000) && (data32 != 0x6));
|
||||
|
||||
if (count == 0 && data32 != 0x6) {
|
||||
if (data32 != 0x6) {
|
||||
device_printf(ha->pci_dev,
|
||||
"%s: Poll Q8_FLASH_STATUS failed\n",
|
||||
__func__);
|
||||
|
|
@ -432,7 +432,7 @@ qla_erase_flash_sector(qla_host_t *ha, uint32_t start)
|
|||
|
||||
} while (((count++) < 1000) && (data32 != 0x6));
|
||||
|
||||
if (count == 0 && data32 != 0x6) {
|
||||
if (data32 != 0x6) {
|
||||
device_printf(ha->pci_dev,
|
||||
"%s: Poll Q8_FLASH_STATUS failed\n",
|
||||
__func__);
|
||||
|
|
@ -479,7 +479,7 @@ qla_erase_flash_sector(qla_host_t *ha, uint32_t start)
|
|||
|
||||
} while (((count++) < 1000) && (data32 != 0x6));
|
||||
|
||||
if (count == 0 && data32 != 0x6) {
|
||||
if (data32 != 0x6) {
|
||||
device_printf(ha->pci_dev,
|
||||
"%s: Poll Q8_FLASH_STATUS failed\n",
|
||||
__func__);
|
||||
|
|
@ -575,7 +575,7 @@ qla_wr_flash32(qla_host_t *ha, uint32_t off, uint32_t *data)
|
|||
|
||||
} while ((count < 10000) && (data32 != 0x6));
|
||||
|
||||
if (count == 0 && data32 != 0x6) {
|
||||
if (data32 != 0x6) {
|
||||
device_printf(ha->pci_dev,
|
||||
"%s: Poll Q8_FLASH_STATUS failed\n",
|
||||
__func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue