Skip to content

Commit 14ce384

Browse files
sudipm-mukherjeegregkh
authored andcommitted
tty: remove unused argument from tty_open_by_driver()
The argument 'inode' passed to tty_open_by_driver() was not being used. Remove the extra argument. Signed-off-by: Sudip Mukherjee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4500914 commit 14ce384

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/tty/tty_io.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,6 @@ EXPORT_SYMBOL_GPL(tty_kopen);
19241924
/**
19251925
* tty_open_by_driver - open a tty device
19261926
* @device: dev_t of device to open
1927-
* @inode: inode of device file
19281927
* @filp: file pointer to tty
19291928
*
19301929
* Performs the driver lookup, checks for a reopen, or otherwise
@@ -1937,7 +1936,7 @@ EXPORT_SYMBOL_GPL(tty_kopen);
19371936
* - concurrent tty driver removal w/ lookup
19381937
* - concurrent tty removal from driver table
19391938
*/
1940-
static struct tty_struct *tty_open_by_driver(dev_t device, struct inode *inode,
1939+
static struct tty_struct *tty_open_by_driver(dev_t device,
19411940
struct file *filp)
19421941
{
19431942
struct tty_struct *tty;
@@ -2029,7 +2028,7 @@ static int tty_open(struct inode *inode, struct file *filp)
20292028

20302029
tty = tty_open_current_tty(device, filp);
20312030
if (!tty)
2032-
tty = tty_open_by_driver(device, inode, filp);
2031+
tty = tty_open_by_driver(device, filp);
20332032

20342033
if (IS_ERR(tty)) {
20352034
tty_free_file(filp);

0 commit comments

Comments
 (0)