aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-01-14 18:57:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-15 10:21:42 +0100
commit63e34e707c6248645da340d4aff7714ec27b5fb1 (patch)
tree92443c03d4fa3b03fff4f9013b1121a21dd2a5db /drivers/leds
parenttty: vcc: Drop unnecessary if block (diff)
downloadlinux-dev-63e34e707c6248645da340d4aff7714ec27b5fb1.tar.xz
linux-dev-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 'drivers/leds')
0 files changed, 0 insertions, 0 deletions