TRIVIAL: linux-3.15-rc5/arch/arm/mach-davinci/clock.c:413: pointless assignment to rate

Bug #1321848 reported by dcb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro
New
Undecided
Unassigned

Bug Description

[linux-3.15-rc5/arch/arm/mach-davinci/clock.c:413] -> [linux-3.15-rc5/arch/arm/mach-davinci/clock.c:
416]: (performance) Variable 'rate' is reassigned a value before the old one has been used.

Source code is

    unsigned long rate = clk->rate;

    ctrl = __raw_readl(pll->base + PLLCTL);
    rate = pll->input_rate = clk->parent->rate;

Suggest remove first assignment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.