diff options
author | Jiri Slaby <jslaby@suse.cz> | 2016-05-03 18:05:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-04 01:59:15 +0300 |
commit | 96317e9e2a12d01eaaebf6b1e92b0f96c121e20a (patch) | |
tree | 1b8c7664675f7c4e5430932597f841c9f7e9ead3 /drivers/tty/serial/serial_core.c | |
parent | 6798df4c5fe0a7e6d2065cf79649a794e5ba7114 (diff) | |
download | linux-96317e9e2a12d01eaaebf6b1e92b0f96c121e20a.tar.xz |
tty: vt, finish looping on duplicate
When the console is already registered, stop crawling the
registered_con_driver array and return an error immediatelly.
This makes the code more obvious. And we do not need to initialize
retval anymore.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/serial_core.c')
0 files changed, 0 insertions, 0 deletions