From: Eugene Teo Date: Tue, 16 Oct 2007 08:28:51 +0000 (-0700) Subject: drivers/video/geode/lxfb_core.c: fix lxfb_setup warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=42b558d51cb0c8a83a17f22b3ec4325176d1797e;p=openwrt%2Fstaging%2Fblogic.git 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: Eugene Teo Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/geode/lxfb_core.c b/drivers/video/geode/lxfb_core.c index 5e30b40c8c0f..583185fd7c94 100644 --- a/drivers/video/geode/lxfb_core.c +++ b/drivers/video/geode/lxfb_core.c @@ -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;