diff options
author | Jiri Slaby (SUSE) <jirislaby@kernel.org> | 2025-03-17 10:00:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-20 18:00:51 +0300 |
commit | 528f31191ebaa00d4a99b293eef1d16f604a0bd0 (patch) | |
tree | 0d94231b7f76201d1254035f520b58cbb59ec15e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 794d7b2721016b81f01838b0ff6eeb18bcfe6fcd (diff) | |
download | linux-528f31191ebaa00d4a99b293eef1d16f604a0bd0.tar.xz |
tty: srmcons: fix retval from srmcons_init()
The value returned from srmcons_init() was -ENODEV for over 2 decades.
But it does not matter, given device_initcall() ignores retvals.
But to be honest, return 0 in case the tty driver was registered
properly.
To do that, the condition is inverted and a short path taken in case of
error.
err_free_drv is introduced as it will be used from more places later.
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Tested-by: Magnus Lindholm <linmag7@gmail.com>
Cc: Richard Henderson <richard.henderson@linaro.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: linux-alpha@vger.kernel.org
Link: https://lore.kernel.org/r/20250317070046.24386-22-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions