Hi!

> Reduce the number of indentation levels in save_image().
> 
> ---
>  suspend.c |   54 ++++++++++++++++++++++++++++--------------------------
>  1 file changed, 28 insertions(+), 26 deletions(-)
> 
> Index: suspend/suspend.c
> ===================================================================
> --- suspend.orig/suspend.c    2007-08-16 15:33:48.000000000 +0200
> +++ suspend/suspend.c 2007-08-16 15:39:58.000000000 +0200
> @@ -494,38 +494,40 @@ static int save_image(struct swap_map_ha
>       else
>               writeout_rate = nr_pages;
>  
> -     nr_pages = 0;
> -     do {
> +     for (nr_pages = 0; ; nr_pages++) {

Interesting use of for()...

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to