From: Geert Uytterhoeven Date: Sun, 14 Sep 2014 09:48:30 +0000 (+0200) Subject: video: valkyriefb: Fix unused variable warning in set_valkyrie_clock() X-Git-Tag: v3.18-rc1~12^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=66b330992c088a3eecbb61eb568095a3919d5aba;p=karo-tx-linux.git video: valkyriefb: Fix unused variable warning in set_valkyrie_clock() If CONFIG_ADB_CUDA=n: drivers/video/fbdev/valkyriefb.c: In function ‘set_valkyrie_clock’: drivers/video/fbdev/valkyriefb.c:267: warning: unused variable ‘i’ drivers/video/fbdev/valkyriefb.c:266: warning: unused variable ‘req’ Move the variable declarations inside the existing #ifdef section to fix this. Signed-off-by: Geert Uytterhoeven Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/valkyriefb.c b/drivers/video/fbdev/valkyriefb.c index 97cb9bd1d1dd..b6ed09f16355 100644 --- a/drivers/video/fbdev/valkyriefb.c +++ b/drivers/video/fbdev/valkyriefb.c @@ -263,10 +263,10 @@ static inline int valkyrie_vram_reqd(int video_mode, int color_mode) static void set_valkyrie_clock(unsigned char *params) { +#ifdef CONFIG_ADB_CUDA struct adb_request req; int i; -#ifdef CONFIG_ADB_CUDA for (i = 0; i < 3; ++i) { cuda_request(&req, NULL, 5, CUDA_PACKET, CUDA_GET_SET_IIC, 0x50, i + 1, params[i]);