serial: tegra: drop bogus NULL tty-port checks
authorJohan Hovold <johan@kernel.org>
Fri, 10 Jul 2020 13:59:47 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 18:59:38 +0000 (20:59 +0200)
commit707631ce639651e51bfed9e56326cde86f9e97b8
treeea2c9e7228acbd5293231ac6e30a2e8340d29cf7
parentb374c562ee7ab3f3a1daf959c01868bae761571c
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>
drivers/tty/serial/serial-tegra.c