]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
clk: pxa: remove unused variables
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sun, 23 Oct 2016 12:19:26 +0000 (14:19 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 2 Nov 2016 00:46:46 +0000 (17:46 -0700)
This is a cleanup patch to remove unused values not used in their
respective functions.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/pxa/clk-pxa27x.c

index c40b1804f58caf33f7b1bf6cac90cc22ea381248..afc395b4148ee21737a18c5c46e88f5f9d0f2fbe 100644 (file)
@@ -221,14 +221,12 @@ static unsigned long clk_pxa27x_core_get_rate(struct clk_hw *hw,
                                              unsigned long parent_rate)
 {
        unsigned long clkcfg;
-       unsigned int t, ht, b, osc_forced;
+       unsigned int ht, osc_forced;
        unsigned long ccsr = readl(CCSR);
 
        osc_forced = ccsr & (1 << CCCR_CPDIS_BIT);
        asm("mrc\tp14, 0, %0, c6, c0, 0" : "=r" (clkcfg));
-       t  = clkcfg & (1 << 0);
        ht = clkcfg & (1 << 2);
-       b  = clkcfg & (1 << 3);
 
        if (osc_forced)
                return parent_rate;
@@ -241,7 +239,7 @@ static unsigned long clk_pxa27x_core_get_rate(struct clk_hw *hw,
 static u8 clk_pxa27x_core_get_parent(struct clk_hw *hw)
 {
        unsigned long clkcfg;
-       unsigned int t, ht, b, osc_forced;
+       unsigned int t, ht, osc_forced;
        unsigned long ccsr = readl(CCSR);
 
        osc_forced = ccsr & (1 << CCCR_CPDIS_BIT);
@@ -251,7 +249,6 @@ static u8 clk_pxa27x_core_get_parent(struct clk_hw *hw)
        asm("mrc\tp14, 0, %0, c6, c0, 0" : "=r" (clkcfg));
        t  = clkcfg & (1 << 0);
        ht = clkcfg & (1 << 2);
-       b  = clkcfg & (1 << 3);
 
        if (ht || t)
                return PXA_CORE_TURBO;