]> git.karo-electronics.de Git - linux-beck.git/commitdiff
tty: cyclades+mxser, do not initialize to zero
authorJiri Slaby <jslaby@suse.cz>
Mon, 9 May 2016 07:11:55 +0000 (09:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 15:56:30 +0000 (08:56 -0700)
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>
drivers/tty/cyclades.c
drivers/tty/mxser.c

index 3840d6b421c402b4caa8974c88450b5958a2e902..fcc4962fa4c6eaf352e0f03341314a192d95088f 100644 (file)
@@ -2288,7 +2288,6 @@ static int cy_get_serial_info(struct cyclades_port *info,
                .closing_wait = info->port.closing_wait,
                .baud_base = info->baud,
                .custom_divisor = info->custom_divisor,
-               .hub6 = 0,              /*!!! */
        };
        return copy_to_user(retinfo, &tmp, sizeof(*retinfo)) ? -EFAULT : 0;
 }
index 98d2bd16706d5a483774cd405d22220b757538ed..69294ae154be0f17ae0e56c39d6fa048077b3c9c 100644 (file)
@@ -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;