From: Jiri Slaby Date: Mon, 9 May 2016 07:11:55 +0000 (+0200) Subject: tty: cyclades+mxser, do not initialize to zero X-Git-Tag: v4.14-rc1~2868^2~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=322b7d6d3efd34c7da858b27d7a410b84a9ed6db;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c index 3840d6b..fcc4962 100644 --- a/drivers/tty/cyclades.c +++ b/drivers/tty/cyclades.c @@ -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; } diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c index 98d2bd1..69294ae 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;