]> err.no Git - linux-2.6/blobdiff - drivers/net/tg3.c
[PATCH] i386: Fix broken CONFIG_COMPAT_VDSO on i386
[linux-2.6] / drivers / net / tg3.c
index 135c0987deaeeb25a0793a4e0925b1bfb3f1fe89..e136bae619705d19cd243d7f57f5d096d2ef8421 100644 (file)
@@ -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) {