runtime: fix unused variable warning

This commit is contained in:
Sebastien Bourdeauducq 2016-07-28 09:01:21 +08:00
parent 92338026f6
commit b5e52e9870
1 changed files with 1 additions and 1 deletions

View File

@ -42,9 +42,9 @@ int rtiocrg_check(void)
int rtiocrg_switch_clock(int clk) int rtiocrg_switch_clock(int clk)
{ {
#ifdef CSR_RTIO_CRG_BASE
int current_clk; int current_clk;
#ifdef CSR_RTIO_CRG_BASE
current_clk = rtio_crg_clock_sel_read(); current_clk = rtio_crg_clock_sel_read();
if(clk == current_clk) { if(clk == current_clk) {
#ifdef CSR_RTIO_CRG_PLL_RESET_ADDR #ifdef CSR_RTIO_CRG_PLL_RESET_ADDR