mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
No need to define errno defined at the top of reboot.c.
err2 is only needed when CONFIG_MAGIC_SYSRQ is defined. Signed-off-by: Li Xin <xin.b.li@intel.com>
This commit is contained in:
1 parent
a3cbc30d9f
commit
8bfe74175c
1 file changed
+4
-4
@@ -1,7 +1,4 @@
|
||||
|
||||
#define __KERNEL_SYSCALLS__
|
||||
static int errno;
|
||||
#include <linux/errno.h>
|
||||
#include <linux/version.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/mm.h>
|
||||
@@ -309,7 +306,10 @@ static int setup_shutdown_watcher(struct notifier_block *notifier,
|
||||
unsigned long event,
|
||||
void *data)
|
||||
{
|
||||
int err1=0, err2=0;
|
||||
int err1 = 0;
|
||||
#ifdef CONFIG_MAGIC_SYSRQ
|
||||
int err2 = 0;
|
||||
#endif
|
||||
|
||||
down(&xenbus_lock);
|
||||
err1 = register_xenbus_watch(&shutdown_watch);
|
||||
|
||||