[kj] is_power_of_2 in net/core/neighbour.c

2007-08-13 Thread vignesh babu
Replacing n & (n - 1) for power of 2 check by is_power_of_2(n) Signed-off-by: vignesh babu <[EMAIL PROTECTED]> --- diff --git a/net/core/neighbour.c b/net/core/neighbour.c index ca2a153..f7de8f2 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -33,6 +33,7 @@ #include

[kj] is_power_of_2 in net/pcmcia/pcnet_cs.c

2007-08-13 Thread vignesh babu
Replacing n & (n - 1) for power of 2 check by is_power_of_2(n) Signed-off-by: vignesh babu <[EMAIL PROTECTED]> --- diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index 63de89e..d23bf6e 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/

[PATCH]is_power_of_2-net/core/neighbour.c

2007-06-14 Thread vignesh babu
Replacing (n & (n-1)) in the context of power of 2 checks with is_power_of_2 Signed-off-by: vignesh babu <[EMAIL PROTECTED]> --- diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 6f3bb73..e663999 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -

[PATCH]is_power_of_2-cxgb3/cxgb3_main.c

2007-06-11 Thread vignesh babu
Replacing (n & (n-1)) in the context of power of 2 checks with is_power_of_2 Signed-off-by: vignesh babu <[EMAIL PROTECTED]> --- diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index 1b20f40..a124b33 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++ b/d

[PATCH]is_power_of_2-myri10ge/myri10ge.c

2007-06-11 Thread vignesh babu
Replacing (n & (n-1)) in the context of power of 2 checks with is_power_of_2 Signed-off-by: vignesh babu <[EMAIL PROTECTED]> --- diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index b53b7ad..89da958 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/d

[KJ][PATCH] is_power_of_2 in Chelsio

2007-02-16 Thread Vignesh Babu BM
n -EINVAL; /* not power of 2 */ if (!(m.rx_pg_sz & 0x14000)) return -EINVAL; /* not 16KB or 64KB */ -- Regards, Vignesh Babu BM _ "Why is it that every time I'm with you, make