Skip to content

Commit

Permalink
r8169: remove workaround for ancient gcc bug
Browse files Browse the repository at this point in the history
The kernel can't be built any longer with this ancient GCC version.
Eventually it becomes clear what this statement actually does.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Heiner Kallweit authored and David S. Miller committed Nov 20, 2018
1 parent ad45ff0 commit 8b6dd85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/ethernet/realtek/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -5903,9 +5903,9 @@ static int rtl8169_xmit_frags(struct rtl8169_private *tp, struct sk_buff *skb,
goto err_out;
}

/* Anti gcc 2.95.3 bugware (sic) */
status = opts[0] | len |
(RingEnd * !((entry + 1) % NUM_TX_DESC));
status = opts[0] | len;
if (entry == NUM_TX_DESC - 1)
status |= RingEnd;

txd->opts1 = cpu_to_le32(status);
txd->opts2 = cpu_to_le32(opts[1]);
Expand Down

0 comments on commit 8b6dd85

Please sign in to comment.