]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
Write a for ever loop the normal way instead of with do { } while (1)
authorAntti Kantee <pooka@iki.fi>
Tue, 21 Apr 2015 14:37:47 +0000 (14:37 +0000)
committerAntti Kantee <pooka@iki.fi>
Tue, 21 Apr 2015 14:37:47 +0000 (14:37 +0000)
lib/libbmk_core/sched.c

index 523803a1e1c0171821ed38f60a9a6baf9b581cd6..b7f40597b0e56ac48aff28e54edfb33eb3a08304 100644 (file)
@@ -197,7 +197,7 @@ bmk_sched(void)
        }
 
        /* could do time management a bit better here */
-       do {
+       for (;;) {
                bmk_time_t tm, wakeup;
 
                /* block domain for max 1s */
@@ -227,7 +227,7 @@ bmk_sched(void)
 
                /* sleep for a while */
                bmk_platform_block(wakeup);
-       } while (1);
+       }
 
        bmk_platform_splx(flags);