From: Andrew Morton Date: Thu, 2 Apr 2009 23:56:36 +0000 (-0700) Subject: __tty_open(): use the correct type for saved_flags X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=846c151a4de188bb8f7043097518dab2ff5b5c2c;p=linux-2.6-omap-h63xx.git __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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 33dac94922a..a44b701c5bb 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -1758,7 +1758,7 @@ static int __tty_open(struct inode *inode, struct file *filp) struct tty_driver *driver; int index; dev_t device = inode->i_rdev; - unsigned short saved_flags = filp->f_flags; + unsigned saved_flags = filp->f_flags; nonseekable_open(inode, filp);