summaryrefslogtreecommitdiffstats
path: root/drivers/tty/mxser.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2016-05-09 09:11:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-25 17:56:30 +0200
commit322b7d6d3efd34c7da858b27d7a410b84a9ed6db (patch)
tree9ae8203df98f8b1c578cb06289a44869e431f694 /drivers/tty/mxser.c
parentnet: ircomm, cleanup TIOCGSERIAL (diff)
downloadlinux-322b7d6d3efd34c7da858b27d7a410b84a9ed6db.tar.xz
linux-322b7d6d3efd34c7da858b27d7a410b84a9ed6db.zip
tty: cyclades+mxser, do not initialize to zero
Do not initialize members of initialized structures to zero. They are zeroed automatically. Part of hub6 cleanup series. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/mxser.c')
-rw-r--r--drivers/tty/mxser.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c
index 98d2bd16706d..69294ae154be 100644
--- a/drivers/tty/mxser.c
+++ b/drivers/tty/mxser.c
@@ -1219,7 +1219,6 @@ static int mxser_get_serial_info(struct tty_struct *tty,
.close_delay = info->port.close_delay,
.closing_wait = info->port.closing_wait,
.custom_divisor = info->custom_divisor,
- .hub6 = 0
};
if (copy_to_user(retinfo, &tmp, sizeof(*retinfo)))
return -EFAULT;