Commits

Anonymous committed 61a32b9

- Remove return's at the end of void functions
- Some minor tweaking of the use of braces in two spots

ok mikeb@

  • Participants
  • Parent commits 2f1ef63

Comments (0)

Files changed (1)

sys/dev/pci/if_ix.c

-/*	$OpenBSD: if_ix.c,v 1.74 2012/11/08 09:18:37 mikeb Exp $	*/
+/*	$OpenBSD: if_ix.c,v 1.75 2012/11/23 04:34:11 brad Exp $	*/
 
 /******************************************************************************
 
 	sc->watchdog_events++;
 
 	ixgbe_init(sc);
-	return;
 }
 
 /*********************************************************************
 		for (i = 0; i < sc->num_queues; i++)
 			txr[i].watchdog_timer = FALSE;
 	}
-
-
-	return;
 }
 
 
 			sc->optics = IFM_ETHER | IFM_AUTO;
 			break;
 	}
-	return;
 }
 
 /*********************************************************************
 	struct ix_queue *que = sc->queues;
 	int i;
 
-
 	/* Release all msix queue resources: */
 	for (i = 0; i < sc->num_queues; i++, que++) {
 		if (que->tag)
 	if (os->os_membase != 0)
 		bus_space_unmap(os->os_memt, os->os_memh, os->os_memsize);
 	os->os_membase = 0;
-
-	return;
 }
 
 /*********************************************************************
 
 	if_attach(ifp);
 	ether_ifattach(ifp);
-
-
-	return;
 }
 
 void
 			err = sc->hw.mac.ops.setup_link(&sc->hw, autoneg,
 			    negotiate, sc->link_up);
 	}
-	return;
 }
 
 
 		rttdcs &= ~IXGBE_RTTDCS_ARBDIS;
 		IXGBE_WRITE_REG(hw, IXGBE_RTTDCS, rttdcs);
 	}
-
-	return;
 }
 
 /*********************************************************************
 	struct tx_ring *txr = sc->tx_rings;
 	int		i;
 
-	for (i = 0; i < sc->num_queues; i++, txr++) {
+	for (i = 0; i < sc->num_queues; i++, txr++)
 		ixgbe_free_transmit_buffers(txr);
-	}
 }
 
 /*********************************************************************
 	struct rx_ring *rxr = sc->rx_rings;
 	int i;
 
-	for (i = 0; i < sc->num_queues; i++, rxr++)
+	for (i = 0; i < sc->num_queues; i++, rxr++) {
 		if (ixgbe_setup_receive_ring(rxr))
 			goto fail;
+	}
 
 	return (0);
 
 		rxcsum |= IXGBE_RXCSUM_IPPCSE;
 
 	IXGBE_WRITE_REG(&sc->hw, IXGBE_RXCSUM, rxcsum);
-
-	return;
 }
 
 /*********************************************************************
 	struct rx_ring *rxr = sc->rx_rings;
 	int		i;
 
-	for (i = 0; i < sc->num_queues; i++, rxr++) {
+	for (i = 0; i < sc->num_queues; i++, rxr++)
 		ixgbe_free_receive_buffers(rxr);
-	}
 }
 
 /*********************************************************************
 		ixgbe_enable_queue(sc, que->msix);
 
 	IXGBE_WRITE_FLUSH(hw);
-
-	return;
 }
 
 void
 		IXGBE_WRITE_REG(&sc->hw, IXGBE_EIMC_EX(1), ~0);
 	}
 	IXGBE_WRITE_FLUSH(&sc->hw);
-	return;
 }
 
 uint16_t