MIPS: Routerboard 532: Fix vendor retry check code

read_config_dword() contains strange condition checking ret for a
number of values. The ret variable, however, is always zero because
config_access() never returns anything else. Thus, the retry is always
taken until number of tries is exceeded.

The code looks like it wants to check *val instead of ret to see if the
read gave an error response.

Fixes: 73b4390fb234 ("[MIPS] Routerboard 532: Support for base system")
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by Ilpo Järvinen and committed by Thomas Bogendoerfer ae9daffd 83a7eefe

+2 -2
+2 -2
arch/mips/pci/ops-rc32434.c
··· 112 112 * gives them time to settle 113 113 */ 114 114 if (where == PCI_VENDOR_ID) { 115 - if (ret == 0xffffffff || ret == 0x00000000 || 116 - ret == 0x0000ffff || ret == 0xffff0000) { 115 + if (*val == 0xffffffff || *val == 0x00000000 || 116 + *val == 0x0000ffff || *val == 0xffff0000) { 117 117 if (delay > 4) 118 118 return 0; 119 119 delay *= 2;