tty: Use the preferred form for passing the size of a structure type
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 23 Jul 2020 22:34:22 +0000 (17:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 15:07:59 +0000 (17:07 +0200)
commita32418919dd5e863ce47db1bac9051a5364e44a0
treea03a620909615abe4085fe3ba20843f4eacf27ae
parent52b52e91899bc5a76a77b42ec1bdf245aee0286e
tty: Use the preferred form for passing the size of a structure type

Use the preferred form for passing the size of a structure type. The
alternative form where the structure type is spelled out hurts
readability and introduces an opportunity for a bug when the object
type is changed but the corresponding object identifier to which the
sizeof operator is applied is not.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Acked-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/b04dd8cdd67bd6ffde3fd12940aeef35fdb824a6.1595543280.git.gustavoars@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c