[PATCH] drivers/input/input.c compile warning fix

From: Petri Koistinen
Date: Fri Sep 05 2003 - 05:45:44 EST


Hi!

$ make allnoconfig
$ make

CC drivers/input/input.o
drivers/input/input.c: In function `input_init':
drivers/input/input.c:687: warning: unused variable `entry'

Perhaps following patch could remove that warning. Linus don't like use
of #ifdefs but they are already used in that file.

Best regards,
Petri Koistinen

--- linux-2.5/drivers/input/input.c.orig 2003-09-05 13:36:19.000000000 +0300
+++ linux-2.5/drivers/input/input.c 2003-09-05 13:36:58.000000000 +0300
@@ -684,7 +684,9 @@

static int __init input_init(void)
{
+#ifdef CONFIG_PROC_FS
struct proc_dir_entry *entry;
+#endif
int retval = -ENOMEM;

class_register(&input_class);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/