aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorTang Bin <[email protected]>2021-08-11 18:51:36 +0800
committerGreg Kroah-Hartman <[email protected]>2021-08-13 09:11:21 +0200
commit217b04c67b6bca03a484bf8cad44596a34a9de4c (patch)
tree9750e442ad975a37871315d56d46b0885c536b36 /scripts/gdb/linux/utils.py
parent15e580283f2654b3455970c404ae363197aa176d (diff)
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 <[email protected]> Signed-off-by: Zhang Shengju <[email protected]> Signed-off-by: Tang Bin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions