Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8abd20b4 authored by Ahmad Fatoum's avatar Ahmad Fatoum Committed by Jeff Kirsher
Browse files

e1000: Fix off-by-one in debug message

parent 80752a98
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -4307,8 +4307,10 @@ static void e1000_init_rx_addrs(struct e1000_hw *hw)


	rar_num = E1000_RAR_ENTRIES;
	rar_num = E1000_RAR_ENTRIES;


	/* Zero out the other 15 receive addresses. */
	/* Zero out the following 14 receive addresses. RAR[15] is for
	e_dbg("Clearing RAR[1-15]\n");
	 * manageability
	 */
	e_dbg("Clearing RAR[1-14]\n");
	for (i = 1; i < rar_num; i++) {
	for (i = 1; i < rar_num; i++) {
		E1000_WRITE_REG_ARRAY(hw, RA, (i << 1), 0);
		E1000_WRITE_REG_ARRAY(hw, RA, (i << 1), 0);
		E1000_WRITE_FLUSH();
		E1000_WRITE_FLUSH();