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:
kaf24@firebug.cl.cam.ac.uk committed 2005-08-05 09:53:04 +00:00
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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.