linux-4.6-rc5/arch/arm/mach-vexpress/spc.c:332: possible typo ?

David Binderman dcb314 at hotmail.com
Mon Apr 25 13:31:54 PDT 2016


Hello there,

linux-4.6-rc5/arch/arm/mach-vexpress/spc.c:332]: (style) Variable 'perf_stat_reg' is assigned a value that is never used.

   if (cluster_is_a15(cluster)) {
        req_type = CA15_DVFS;
        perf_cfg_reg = PERF_LVL_A15;
        perf_stat_reg = PERF_REQ_A15;
    } else {
        req_type = CA7_DVFS;
        perf_cfg_reg = PERF_LVL_A7;
        perf_stat_reg = PERF_REQ_A7;
    }

But local variable perf_stat_reg doesn't get used anywhere.

Suggest either delete or use.


Regards

David Binderman

 		 	   		  


More information about the linux-arm-kernel mailing list