diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2023-08-16 12:55:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-22 14:58:15 +0200 |
commit | 46bc78c81b65044fa7bd4781e6501b756b3a86bc (patch) | |
tree | d59d32b205b9d97942c692a59e6fa358b137a432 /include/linux/tty_flip.h | |
parent | d4d13ff3ac78b41bfaefd5ad1efd72cfbf43f288 (diff) | |
download | linux-stable-46bc78c81b65044fa7bd4781e6501b756b3a86bc.tar.gz linux-stable-46bc78c81b65044fa7bd4781e6501b756b3a86bc.tar.bz2 linux-stable-46bc78c81b65044fa7bd4781e6501b756b3a86bc.zip |
tty: tty_buffer: use struct_size() in tty_buffer_alloc()
Now, that tty_buffer::data has the right type, use struct_size() for
size calculation. struct_size() makes the code less error-prone and more
readable.
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230816105530.3335-3-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty_flip.h')
0 files changed, 0 insertions, 0 deletions