tty: 8250/serial_cs, propagate errors in simple_config
authorJiri Slaby <jslaby@suse.cz>
Tue, 2 Mar 2021 06:21:43 +0000 (07:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:07 +0000 (09:34 +0100)
commit7a9ca6329807122b53955673ef453423d3e1a3ab
tree015eb1a542c5afaf5aa1fe5aac73ba1c72bb369b
parent7e3d3c08f17cf082dbfc86386a2e327ccb080c16
tty: 8250/serial_cs, propagate errors in simple_config

The caller expects from the others (pfc_config and multi_config) to
return standard error values. So do the same for simple_config too.

We invert the if condition to handle the error case.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210302062214.29627-13-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/serial_cs.c