diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-01-14 18:57:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-15 10:21:42 +0100 |
commit | 63e34e707c6248645da340d4aff7714ec27b5fb1 (patch) | |
tree | 92443c03d4fa3b03fff4f9013b1121a21dd2a5db /kernel/user_namespace.c | |
parent | tty: vcc: Drop unnecessary if block (diff) | |
download | linux-63e34e707c6248645da340d4aff7714ec27b5fb1.tar.xz linux-63e34e707c6248645da340d4aff7714ec27b5fb1.zip |
tty: vcc: Drop impossible to hit WARN_ON
vcc_get() returns the port that has provided port->index. As the port that
is about to be removed isn't removed yet this trivially will find this
port. So simplify the call to not assign an identical value to the port
pointer and drop the warning that is never hit.
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20210114175718.137483-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/user_namespace.c')
0 files changed, 0 insertions, 0 deletions