Commit da544726 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by David S. Miller
Browse files

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.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarJiri Slaby <jirislaby@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a57cdeb3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment