arch/arm/mach-omap2/vc.c:302: bad if test ?

David Binderman dcb314 at hotmail.com
Fri Aug 28 02:25:53 PDT 2015


Hello there,

arch/arm/mach-omap2/vc.c:302:47: warning: logical ‘or’ of collectively exhaustive tests is always true [-Wlogical-op]

Source code is

        if (!(val & OMAP3430_PRM_POLCTRL_CLKREQ_POL) ||
            (val & OMAP3430_PRM_POLCTRL_CLKREQ_POL)) {

Suggest code rework.

Regards

David Binderman

 		 	   		  


More information about the linux-arm-kernel mailing list