提交 42b558d5 编写于 作者: E Eugene Teo 提交者: 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: NEugene Teo <eugeneteo@kernel.sg>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 57bac0f0
......@@ -566,12 +566,7 @@ static int __init lxfb_setup(char *options)
if (!options || !*options)
return 0;
while (1) {
char *opt = strsep(&options, ",");
if (opt == NULL)
break;
while ((opt = strsep(&options, ",")) != NULL) {
if (!*opt)
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册