diff options
author | Johan Hovold <johan@kernel.org> | 2020-07-10 15:59:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-21 20:59:38 +0200 |
commit | 707631ce639651e51bfed9e56326cde86f9e97b8 (patch) | |
tree | ea2c9e7228acbd5293231ac6e30a2e8340d29cf7 /init/do_mounts.h | |
parent | b374c562ee7ab3f3a1daf959c01868bae761571c (diff) | |
download | linux-stable-707631ce639651e51bfed9e56326cde86f9e97b8.tar.gz linux-stable-707631ce639651e51bfed9e56326cde86f9e97b8.tar.bz2 linux-stable-707631ce639651e51bfed9e56326cde86f9e97b8.zip |
serial: tegra: drop bogus NULL tty-port checks
The struct tty_port is part of the uart state and will never be NULL in
the receive helpers. Drop the bogus NULL checks and rename the
pointer-variables "port" to differentiate them from struct tty_struct
pointers (which can be NULL).
Fixes: 962963e4ee23 ("serial: tegra: Switch to using struct tty_port")
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20200710135947.2737-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init/do_mounts.h')
0 files changed, 0 insertions, 0 deletions