[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200704260727.l3Q7RP04023958@shell0.pdx.osdl.net>
Date: Thu, 26 Apr 2007 00:27:25 -0700
From: akpm@...ux-foundation.org
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org,
milindchoudhary@...il.com, paulus@...ba.org
Subject: [patch 06/15] ROUND_UP macro cleanup in drivers/net/ppp_generic.c
From: Milind Arun Choudhary <milindchoudhary@...il.com>
ROUND_UP macro cleanup use DIV_ROUND_UP
Signed-off-by: Milind Arun Choudhary <milindchoudhary@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>
Acked-by: Paul Mackerras <paulus@...ba.org>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
drivers/net/ppp_generic.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff -puN drivers/net/ppp_generic.c~round_up-macro-cleanup-in-drivers-net-ppp_genericc drivers/net/ppp_generic.c
--- a/drivers/net/ppp_generic.c~round_up-macro-cleanup-in-drivers-net-ppp_genericc
+++ a/drivers/net/ppp_generic.c
@@ -88,8 +88,6 @@ struct ppp_file {
#define PF_TO_PPP(pf) PF_TO_X(pf, struct ppp)
#define PF_TO_CHANNEL(pf) PF_TO_X(pf, struct channel)
-#define ROUNDUP(n, x) (((n) + (x) - 1) / (x))
-
/*
* Data structure describing one ppp unit.
* A ppp unit corresponds to a ppp network interface device
@@ -1297,7 +1295,7 @@ static int ppp_mp_explode(struct ppp *pp
*/
fragsize = len;
if (nfree > 1)
- fragsize = ROUNDUP(fragsize, nfree);
+ fragsize = DIV_ROUND_UP(fragsize, nfree);
/* nbigger channels get fragsize bytes, the rest get fragsize-1,
except if nbigger==0, then they all get fragsize. */
nbigger = len % nfree;
_
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists