projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libata: convert to iomap
[powerpc.git]
/
drivers
/
net
/
tg3.c
diff --git
a/drivers/net/tg3.c
b/drivers/net/tg3.c
index
135c098
..
e136bae
100644
(file)
--- a/
drivers/net/tg3.c
+++ b/
drivers/net/tg3.c
@@
-3380,7
+3380,7
@@
next_pkt:
}
next_pkt_nopost:
sw_idx++;
- sw_idx
%= TG3_RX_RCB_RING_SIZE(tp
);
+ sw_idx
&= (TG3_RX_RCB_RING_SIZE(tp) - 1
);
/* Refresh hw_idx to see if there is new work */
if (sw_idx == hw_idx) {