ROUND_UP macro cleanup in drivers/net/ppp_generic.c
PATCH 1/1 ROUND_UP macro cleanup in drivers/net/ppp_generic.c
ROUND_UP macro cleanup use DIV_ROUND_UP
Signed-off-by Milind Arun Choudhary <[email protected]>
--- ppp_generic.c | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-)
drivers/net/ppp_generic.c +1 -3
@@ -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 *ppp, struct sk_buff *skb)*/ 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;
---
Milind Arun Choudhary
Quoted 3 lines · Milind Arun Choudhary
ROUND_UPmacro cleanup useDIV_ROUND_UPSigned-off-by Milind Arun Choudhary <[email protected]>
Acked-by Paul Mackerras <[email protected]>
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors