ARM: 8871/1: iop13xx: Simplify iop13xx_atu{e,x}_pci_status checks
[linux-2.6-microblaze.git] / arch / arm / mach-iop13xx / pci.c
index 46ea06e..94d30bc 100644 (file)
@@ -289,7 +289,7 @@ iop13xx_atux_write_config(struct pci_bus *bus, unsigned int devfn, int where,
 
        if (size != 4) {
                val = iop13xx_atux_read(addr);
-               if (!iop13xx_atux_pci_status(1) == 0)
+               if (iop13xx_atux_pci_status(1))
                        return PCIBIOS_SUCCESSFUL;
 
                where = (where & 3) * 8;
@@ -436,7 +436,7 @@ iop13xx_atue_write_config(struct pci_bus *bus, unsigned int devfn, int where,
 
        if (size != 4) {
                val = iop13xx_atue_read(addr);
-               if (!iop13xx_atue_pci_status(1) == 0)
+               if (iop13xx_atue_pci_status(1))
                        return PCIBIOS_SUCCESSFUL;
 
                where = (where & 3) * 8;