Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 846c151a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

__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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b6fac63c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);