patch-2.4.2 linux/kernel/printk.c

Next file: linux/kernel/resource.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.1/linux/kernel/printk.c linux/kernel/printk.c
@@ -15,6 +15,7 @@
  */
 
 #include <linux/mm.h>
+#include <linux/tty.h>
 #include <linux/tty_driver.h>
 #include <linux/smp_lock.h>
 #include <linux/console.h>
@@ -125,9 +126,8 @@
 	unsigned long i, j, limit, count;
 	int do_clear = 0;
 	char c;
-	int error = -EPERM;
+	int error = 0;
 
-	error = 0;
 	switch (type) {
 	case 0:		/* Close log */
 		break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)