diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-12-06 04:59:13 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-12-23 21:17:36 -0500 |
commit | b5e17b71c6b2ff284b4018e272e18876ccfa9b2c (patch) | |
tree | d636954fd9ae6a1de04f3d9845f3054934133dae /drivers/tty | |
parent | 6557b1f69ea0961efde7ab33bfe0cb7e3bfed54e (diff) |
serial: sh-sci: Remove duplicate interrupt check in verify port op
The driver checks if the interrupt number is greater than nr_irqs and
returns an error in that case. The same check is already performed by
the caller, remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index f2fad4d8eb9e..8c17d551f32b 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
@@ -2120,7 +2120,7 @@ static int sci_verify_port(struct uart_port *port, struct serial_struct *ser) | |||
2120 | { | 2120 | { |
2121 | struct sci_port *s = to_sci_port(port); | 2121 | struct sci_port *s = to_sci_port(port); |
2122 | 2122 | ||
2123 | if (ser->irq != s->cfg->irqs[SCIx_TXI_IRQ] || ser->irq > nr_irqs) | 2123 | if (ser->irq != s->cfg->irqs[SCIx_TXI_IRQ]) |
2124 | return -EINVAL; | 2124 | return -EINVAL; |
2125 | if (ser->baud_base < 2400) | 2125 | if (ser->baud_base < 2400) |
2126 | /* No paper tape reader for Mitch.. */ | 2126 | /* No paper tape reader for Mitch.. */ |