Skip to contentSkip to conversation

compile warning cleanup drivers/char/

PATCH New David Farning 1 participant 1 message Sep 10, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compile warning cleanup drivers/char/

hi,

warning:this is my first submission to kj.

This quiets a compile warning in drivers/char

drivers/char/tty_io.c +1 -1
index bb0d919..dcf790c 100644
@@ -2455,7 +2455,7 @@ #endif
 
 static int tty_open(struct inode * inode, struct file * filp)
 {
-	struct tty_struct *tty;
+	struct tty_struct *tty = NULL;
 	int noctty, retval;
 	struct tty_driver *driver;
 	int index;

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors