]> xenbits.xensource.com Git - people/liuw/mini-os.git/commitdiff
mini-os: whitespace
authorThomas Leonard <talex5@gmail.com>
Thu, 26 Jun 2014 11:28:24 +0000 (12:28 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 27 Jun 2014 12:38:34 +0000 (13:38 +0100)
Signed-off-by: Thomas Leonard <talex5@gmail.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
gnttab.c
hypervisor.c
sched.c

index 2f1b3d7a0b9ce21331af59b24172716c8b830f65..6f250062b80316432bff0080e106f257f699baf2 100644 (file)
--- a/gnttab.c
+++ b/gnttab.c
@@ -164,7 +164,7 @@ gnttabop_error(int16_t status)
 {
     status = -status;
     if (status < 0 || status >= ARRAY_SIZE(gnttabop_error_msgs))
-       return "bad status";
+        return "bad status";
     else
         return gnttabop_error_msgs[status];
 }
index b4688a059aaac4445dd96ef94135028b90dc5088..c5de8728eee55c7b3a81a4bc95eec1b184ecfb59 100644 (file)
@@ -64,7 +64,7 @@ void do_hypervisor_callback(struct pt_regs *regs)
             l2 &= ~(1UL << l2i);
 
             port = (l1i * (sizeof(unsigned long) * 8)) + l2i;
-                       do_event(port, regs);
+            do_event(port, regs);
         }
     }
 
diff --git a/sched.c b/sched.c
index 174945ef7592cafa5e812f4ecbfb30231bf14fe4..99d87b609fdce10a886101cb0fe33d2ee39beb9c 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -165,28 +165,28 @@ struct _reent *__getreent(void)
     struct _reent *_reent;
 
     if (!threads_started)
-       _reent = _impure_ptr;
+        _reent = _impure_ptr;
     else if (in_callback)
-       _reent = &callback_reent;
+        _reent = &callback_reent;
     else
-       _reent = &get_current()->reent;
+        _reent = &get_current()->reent;
 
 #ifndef NDEBUG
 #if defined(__x86_64__) || defined(__x86__)
     {
 #ifdef __x86_64__
-       register unsigned long sp asm ("rsp");
+        register unsigned long sp asm ("rsp");
 #else
-       register unsigned long sp asm ("esp");
+        register unsigned long sp asm ("esp");
 #endif
-       if ((sp & (STACK_SIZE-1)) < STACK_SIZE / 16) {
-           static int overflowing;
-           if (!overflowing) {
-               overflowing = 1;
-               printk("stack overflow\n");
-               BUG();
-           }
-       }
+        if ((sp & (STACK_SIZE-1)) < STACK_SIZE / 16) {
+            static int overflowing;
+            if (!overflowing) {
+                overflowing = 1;
+                printk("stack overflow\n");
+                BUG();
+            }
+        }
     }
 #endif
 #else