diff options
| author | Jiri Slaby <jirislaby@kernel.org> | 2023-07-12 08:42:14 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-25 19:19:39 +0200 |
| commit | f6f847ff8d6662977fd7f7199152b87ef029e704 (patch) | |
| tree | 1c04ed5dcac61fd4da378092cbf2b33a488c8808 /kernel/debug | |
| parent | n_tty: drop fp from n_tty_receive_buf_real_raw() (diff) | |
| download | linux-f6f847ff8d6662977fd7f7199152b87ef029e704.tar.gz linux-f6f847ff8d6662977fd7f7199152b87ef029e704.zip | |
n_tty: simplify and sanitize zero_buffer()
* Make 'tty' parameter const as we only look at tty flags here.
* Make 'size' parameter of size_t type as everyone passes that and
memset() (the consumer) expects size_t too. So be consistent.
* Remove redundant local variables, place the content directly to the
'if'.
* Use 0 instead of 0x00 in memset(). The former is more obvious.
No functional changes expected.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230712064216.12150-3-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
