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

David Binderman dcb314 at hotmail.com
Mon May 18 14:44:30 PDT 2015


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

 		 	   		  


More information about the linux-arm-kernel mailing list