Tang Bin 217b04c67b serial: stm32: fix the conditional expression writing
In the function stm32_usart_init_port, intent of the code maybe when
irq returns a value of zero, the return should be '-ENODEV'. But the
conditional expression '? :' maybe clerical error, it should be
'?:' to make '-ENODEV' work.
But in fact, as the example in platform.c is
  * int irq = platform_get_irq(pdev, 0);
  * if (irq < 0)
  * return irq;
So the return value of zero is unnecessary to check, at last remove
the unnecessary '?: -ENODEV'.

Co-developed-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20210811105136.25392-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-13 09:11:21 +02:00
..
2021-08-09 08:52:46 +02:00
2020-10-28 13:39:14 +01:00
2021-07-27 12:17:21 +02:00
2020-07-20 09:39:11 +02:00
2021-08-09 08:52:46 +02:00
2021-04-22 12:09:25 +02:00
2020-08-18 13:51:18 +02:00
2019-12-18 15:04:57 +01:00
2021-07-27 12:17:21 +02:00
2020-01-29 10:13:27 -08:00