aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/sky2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index 552aca76b283..4bb6ea13efdd 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -1927,7 +1927,8 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do)
1927 1927
1928 case OP_TXINDEXLE: 1928 case OP_TXINDEXLE:
1929 /* TX index reports status for both ports */ 1929 /* TX index reports status for both ports */
1930 sky2_tx_done(hw->dev[0], status & 0xffff); 1930 BUILD_BUG_ON(TX_RING_SIZE > 0x1000);
1931 sky2_tx_done(hw->dev[0], status & 0xfff);
1931 if (hw->dev[1]) 1932 if (hw->dev[1])
1932 sky2_tx_done(hw->dev[1], 1933 sky2_tx_done(hw->dev[1],
1933 ((status >> 24) & 0xff) 1934 ((status >> 24) & 0xff)