tty: hvc: Make hvc_remove() return no value
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 5 Nov 2023 21:44:08 +0000 (22:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Nov 2023 19:31:08 +0000 (19:31 +0000)
commit7f30c19caf94b98a1f672376e85a6968d756c25e
tree5c8236630c57531a31bc5914e34301d979f6d802
parent9c8c269b4ae9c1b7f00350cec4777d17154049c0
tty: hvc: Make hvc_remove() return no value

The function hvc_remove() returns zero unconditionally. Make it return
void instead to make it obvious that the caller doesn't need to do any
error handling. Accordingly drop the error handling from
hvc_opal_remove().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Link: https://lore.kernel.org/r/20231105214406.3765906-5-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_console.c
drivers/tty/hvc/hvc_console.h
drivers/tty/hvc/hvc_opal.c