drivers/clk/bcm/clk-iproc-pll.c:280]: (style) Redundant condition

David Binderman dcb314 at hotmail.com
Mon Mar 27 03:47:11 PDT 2017


Hello there,


linux-4.11-rc4/drivers/clk/bcm/clk-iproc-pll.c:280]: (style) Redundant condition: If 'rate >= 2200000000', the comparison 'rate' is always true.

Source code is

    } else if (rate >= VCO_HIGH && rate && rate < VCO_HIGH_HIGH) {

Suggest new code

    } else if (rate >= VCO_HIGH  && rate < VCO_HIGH_HIGH) {

Regards

David Binderman



More information about the linux-arm-kernel mailing list