]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit623e82f8d3ddf9f5e31278b4b67eaa28a3d5ce2a
treea03a620909615abe4085fe3ba20843f4eacf27ae
parentc0d1a2e4a6ed258d6dd25a2504a97c39715bd646
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