Searched hist:"63 e34e707c6248645da340d4aff7714ec27b5fb1" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/tty/ |
H A D | vcc.c | diff 63e34e707c6248645da340d4aff7714ec27b5fb1 Thu Jan 14 18:57:18 CET 2021 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 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>
|