提交 c491b2ff 编写于 作者: R Roel Kluin 提交者: Linus Torvalds

asic3: platform_get_irq() may return signed unnoticed

asic->irq_nr is unsigned. platform_get_irq() may return signed unnoticed
Signed-off-by: NRoel Kluin <12o3l@tiscali.nl>
Cc: Joe Perches <joe@perches.com>
Acked-by: NSamuel Ortiz <sameo@openedhand.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f3c6ba98
...@@ -314,10 +314,12 @@ static int __init asic3_irq_probe(struct platform_device *pdev) ...@@ -314,10 +314,12 @@ static int __init asic3_irq_probe(struct platform_device *pdev)
unsigned long clksel = 0; unsigned long clksel = 0;
unsigned int irq, irq_base; unsigned int irq, irq_base;
int map_size; int map_size;
int ret;
asic->irq_nr = platform_get_irq(pdev, 0); ret = platform_get_irq(pdev, 0);
if (asic->irq_nr < 0) if (ret < 0)
return asic->irq_nr; return ret;
asic->irq_nr = ret;
/* turn on clock to IRQ controller */ /* turn on clock to IRQ controller */
clksel |= CLOCK_SEL_CX; clksel |= CLOCK_SEL_CX;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册