[PATCH] small fix to reboot.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[PATCH] small fix to reboot.c

Li, Xin B
small fix to reboot.c

Keir, I'm not sure why we have a errno defined at the top of reboot.c,
but it's never used in this file.
Another fix is err2 is only needed when CONFIG_MAGIC_SYSRQ is defined.

Signed-off-by: Li Xin <[hidden email]>

diff -r 9faafa21bf98 linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Fri Aug  5
09:04:01 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Fri Aug  5
17:23:23 2005
@@ -1,6 +1,4 @@
 #define __KERNEL_SYSCALLS__
-static int errno;
 #include <linux/errno.h>
 #include <linux/version.h>
 #include <linux/kernel.h>
@@ -309,7 +307,10 @@
                                   unsigned long event,
                                   void *data)
-    int err1=0, err2=0;
+    int err1=0;
+    int err2=0;
     err1 = register_xenbus_watch(&shutdown_watch);

Xen-devel mailing list
[hidden email]