]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/char/epca.c
tiocmget: kill off the passing of the struct file
[mirror_ubuntu-bionic-kernel.git] / drivers / char / epca.c
index d9df46aa0fbafa8988e4d0fda760d18bd6e09b76..ecf6f0a889fcb355252a0777da31a00f59498db2 100644 (file)
@@ -1982,7 +1982,7 @@ static int info_ioctl(struct tty_struct *tty, struct file *file,
        return 0;
 }
 
-static int pc_tiocmget(struct tty_struct *tty, struct file *file)
+static int pc_tiocmget(struct tty_struct *tty)
 {
        struct channel *ch = tty->driver_data;
        struct board_chan __iomem *bc;
@@ -2074,7 +2074,7 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file,
                return -EINVAL;
        switch (cmd) {
        case TIOCMODG:
-               mflag = pc_tiocmget(tty, file);
+               mflag = pc_tiocmget(tty);
                if (put_user(mflag, (unsigned long __user *)argp))
                        return -EFAULT;
                break;