summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_ioctl.c
diff options
context:
space:
mode:
authorPeter Hurley2014-11-05 18:26:25 +0100
committerGreg Kroah-Hartman2014-11-06 05:18:30 +0100
commitc961bfb17406c9fda6ba37cbba34feacdd09c6eb (patch)
treecf2b484bf467e9d6e87d9845552c3d5bb9e7850c /drivers/tty/tty_ioctl.c
parenttty: Replace open-coded test with tty_hung_up_p() (diff)
downloadkernel-qcow2-linux-c961bfb17406c9fda6ba37cbba34feacdd09c6eb.tar.gz
kernel-qcow2-linux-c961bfb17406c9fda6ba37cbba34feacdd09c6eb.tar.xz
kernel-qcow2-linux-c961bfb17406c9fda6ba37cbba34feacdd09c6eb.zip
tty: Call methods in modern style
The use of older function ptr calling style, (*fn)(), makes static analysis more error-prone; replace with modern fn() style. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_ioctl.c')
-rw-r--r--drivers/tty/tty_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c
index 24a136079d90..1787fa4d9448 100644
--- a/drivers/tty/tty_ioctl.c
+++ b/drivers/tty/tty_ioctl.c
@@ -550,14 +550,14 @@ int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios)
unset_locked_termios(&tty->termios, &old_termios, &tty->termios_locked);
if (tty->ops->set_termios)
- (*tty->ops->set_termios)(tty, &old_termios);
+ tty->ops->set_termios(tty, &old_termios);
else
tty_termios_copy_hw(&tty->termios, &old_termios);
ld = tty_ldisc_ref(tty);
if (ld != NULL) {
if (ld->ops->set_termios)
- (ld->ops->set_termios)(tty, &old_termios);
+ ld->ops->set_termios(tty, &old_termios);
tty_ldisc_deref(ld);
}
up_write(&tty->termios_rwsem);