int i;
for (i = 0; INW(dev, SCBCmd) & (CU_CMD_MASK | RU_CMD_MASK); i++) {
- if (i >= TOUT_LOOP) {
+ if (i >= TOUT_LOOP)
return 0;
- }
}
return 1;
while (1) {
/* Find PCI device */
- if ((devno = pci_find_devices(supported, idx++)) < 0) {
+ devno = pci_find_devices(supported, idx++);
+ if (devno < 0)
break;
- }
pci_read_config_dword(devno, PCI_BASE_ADDRESS_0, &iobase);
iobase &= ~0xf;
for (;;) {
status = le16_to_cpu(rx_ring[rx_next].status);
- if (!(status & RFD_STATUS_C)) {
+ if (!(status & RFD_STATUS_C))
break;
- }
/* Valid frame status. */
if ((status & RFD_STATUS_OK)) {
}
if (stat & SCB_STATUS_RNR) {
-
printf("%s: Receiver is not ready, restart it !\n", dev->name);
/* Reinitialize Rx ring. */