Commit 42b558d5 authored by Eugene Teo's avatar Eugene Teo Committed by Linus Torvalds

drivers/video/geode/lxfb_core.c: fix lxfb_setup warning

drivers/video/geode/lxfb_core.c: In function 'lxfb_setup':
drivers/video/geode/lxfb_core.c:564: warning: unused variable 'opt'
Signed-off-by: default avatarEugene Teo <eugeneteo@kernel.sg>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 57bac0f0
...@@ -566,12 +566,7 @@ static int __init lxfb_setup(char *options) ...@@ -566,12 +566,7 @@ static int __init lxfb_setup(char *options)
if (!options || !*options) if (!options || !*options)
return 0; return 0;
while (1) { while ((opt = strsep(&options, ",")) != NULL) {
char *opt = strsep(&options, ",");
if (opt == NULL)
break;
if (!*opt) if (!*opt)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment