serial: sccnxp: Improve verify_port
PATCH 1/1 serial: sccnxp: Improve verify_port
Signed-off-by Alexander Shiyan <[email protected]>
--- drivers/tty/serial/sccnxp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serial/sccnxp.c +2 -2
@@ -713,8 +713,8 @@ static void sccnxp_config_port(struct uart_port *port, int flags)static int sccnxp_verify_port (struct uart_port *port,struct serial_struct *s) { -if ((s->type ==PORT_UNKNOWN ) || (s->type ==PORT_SC26XX )) -return 0 ; +if ((s->type !=PORT_UNKNOWN ) && (s->type !=PORT_SC26XX )) +return -EINVAL ;if (s->irq == port->irq)return 0 ;
Signature · 1 line
1.8.1.5
Greg Kroah-Hartman
maintainerQuoted 2 lines · Alexander Shiyan
Signed-off-by Alexander Shiyan <[email protected]>
Improve it how? Why improve it? You need to provide a lot more information in your patch changelog entry before I can accept this.
Care to try again?
thanks,
greg k-h
Quoted 8 lines · Alexander Shiyan
Quoted 2 lines
Signed-off-by Alexander Shiyan <[email protected]>Improve it how? Why improve it? You need to provide a lot more information in your patch changelog entry before I can accept this.
Care to try again?
Sure :)
---