sky2: use mask instead of modulo operation
authorStephen Hemminger <shemminger@osdl.org>
Mon, 8 May 2006 22:11:29 +0000 (15:11 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Mon, 8 May 2006 23:00:27 +0000 (16:00 -0700)
commitcb5d9547307f44f210f88c829bad4249eeb24bc3
treea8887e1ff9aaae397309b987bdf9e4bef6080032
parentf55925d7eb04f936ab4c001f10e3e9c74c1297ae
sky2: use mask instead of modulo operation

Gcc isn't smart enough to know that it can do a modulo
operation with power of 2 constant by doing a mask.
So add macro to do it for us.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
drivers/net/sky2.c