Selaa lähdekoodia

__tty_open(): use the correct type for saved_flags

filp->f_flags is unsigned, so use that type for the local copy.

Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Andrew Morton 16 vuotta sitten
vanhempi
commit
846c151a4d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      drivers/char/tty_io.c

+ 1 - 1
drivers/char/tty_io.c

@@ -1758,7 +1758,7 @@ static int __tty_open(struct inode *inode, struct file *filp)
 	struct tty_driver *driver;
 	struct tty_driver *driver;
 	int index;
 	int index;
 	dev_t device = inode->i_rdev;
 	dev_t device = inode->i_rdev;
-	unsigned short saved_flags = filp->f_flags;
+	unsigned saved_flags = filp->f_flags;
 
 
 	nonseekable_open(inode, filp);
 	nonseekable_open(inode, filp);