Эх сурвалжийг харах

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>
Jiri Slaby 9 жил өмнө
parent
commit
322b7d6d3e

+ 0 - 1
drivers/tty/cyclades.c

@@ -2288,7 +2288,6 @@ static int cy_get_serial_info(struct cyclades_port *info,
 		.closing_wait = info->port.closing_wait,
 		.closing_wait = info->port.closing_wait,
 		.baud_base = info->baud,
 		.baud_base = info->baud,
 		.custom_divisor = info->custom_divisor,
 		.custom_divisor = info->custom_divisor,
-		.hub6 = 0,		/*!!! */
 	};
 	};
 	return copy_to_user(retinfo, &tmp, sizeof(*retinfo)) ? -EFAULT : 0;
 	return copy_to_user(retinfo, &tmp, sizeof(*retinfo)) ? -EFAULT : 0;
 }
 }

+ 0 - 1
drivers/tty/mxser.c

@@ -1219,7 +1219,6 @@ static int mxser_get_serial_info(struct tty_struct *tty,
 		.close_delay = info->port.close_delay,
 		.close_delay = info->port.close_delay,
 		.closing_wait = info->port.closing_wait,
 		.closing_wait = info->port.closing_wait,
 		.custom_divisor = info->custom_divisor,
 		.custom_divisor = info->custom_divisor,
-		.hub6 = 0
 	};
 	};
 	if (copy_to_user(retinfo, &tmp, sizeof(*retinfo)))
 	if (copy_to_user(retinfo, &tmp, sizeof(*retinfo)))
 		return -EFAULT;
 		return -EFAULT;