mach-pxa/pxa_cplds_irqs.c:126: bad if test ?

From: David Binderman <hidden>
Date: 2015-05-18 21:44:30

Hello there,

[linux-4.1-rc4/arch/arm/mach-pxa/pxa_cplds_irqs.c:126]: (style) Checking if unsigned variable 'base_irq' is less than zero.

??? base_irq = platform_get_irq(pdev, 1);
??? if (base_irq < 0)
??????? base_irq = 0;

Suggest code rework.

Regards

David Binderman

 		 	   		  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help