Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: tegra: clk-tegra30: Remove unused variable 'reg'

Fixes the following W=1 kernel build warning(s):

drivers/clk/tegra/clk-tegra30.c: In function ‘tegra30_enable_cpu_clock’:
drivers/clk/tegra/clk-tegra30.c:1107:15: warning: variable ‘reg’ set but not used [-Wunused-but-set-variable]

Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Jonathan Hunter <jonathanh@nvidia.com>
Cc: linux-clk@vger.kernel.org
Cc: linux-tegra@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210126124540.3320214-8-lee.jones@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Lee Jones and committed by
Stephen Boyd
a89bd29a 4414c16e

+1 -4
+1 -4
drivers/clk/tegra/clk-tegra30.c
··· 1104 1104 1105 1105 static void tegra30_enable_cpu_clock(u32 cpu) 1106 1106 { 1107 - unsigned int reg; 1108 - 1109 1107 writel(CPU_CLOCK(cpu), 1110 1108 clk_base + TEGRA30_CLK_RST_CONTROLLER_CLK_CPU_CMPLX_CLR); 1111 - reg = readl(clk_base + 1112 - TEGRA30_CLK_RST_CONTROLLER_CLK_CPU_CMPLX_CLR); 1109 + readl(clk_base + TEGRA30_CLK_RST_CONTROLLER_CLK_CPU_CMPLX_CLR); 1113 1110 } 1114 1111 1115 1112 static void tegra30_disable_cpu_clock(u32 cpu)