Julia Lawall 8b97c7c283 drivers/atm: Use DIV_ROUND_CLOSEST
The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
but is perhaps more readable.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@haskernel@
@@

#include <linux/kernel.h>

@depends on haskernel@
expression x,__divisor;
@@

- (((x) + ((__divisor) / 2)) / (__divisor))
+ DIV_ROUND_CLOSEST(x,__divisor)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-08-02 12:54:22 -07:00
..
2008-09-22 19:22:58 -07:00
2009-02-18 19:35:17 -08:00
2005-04-16 15:20:36 -07:00
2008-06-17 16:21:44 -07:00
2009-08-02 12:54:22 -07:00
2005-04-16 15:20:36 -07:00
2009-03-21 19:06:51 -07:00
2008-05-14 23:28:47 -07:00
2008-12-26 01:26:11 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-09-22 19:22:58 -07:00
2005-04-16 15:20:36 -07:00