lkml.org 
[lkml]   [2008]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/10] drivers/ieee1394: Use DIV_ROUND_UP
Julia Lawall wrote:
> -#define bytes_to_quads(_b) (((_b) + sizeof(u32) - 1) / sizeof(u32))
> +#define bytes_to_quads(_b) DIV_ROUND_UP(_b, sizeof(u32))
...
> - return (dg_size + adj_max_payload - 1) / adj_max_payload;
> + return DIV_ROUND_UP(dg_size, adj_max_payload);

I cut the changelog down to the necessary and committed it to
linux1394-2.6.git. Thanks,
--
Stefan Richter
-=====-==--- =--- ---=-
http://arcgraph.de/sr/


\
 
 \ /
  Last update: 2008-08-02 20:19    [W:0.039 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site