diff options
author | Eugene Teo <eugeneteo@kernel.sg> | 2007-10-16 01:28:51 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 09:43:15 -0700 |
commit | 42b558d51cb0c8a83a17f22b3ec4325176d1797e (patch) | |
tree | 49af906ee029c1999731b6d6db4973241913d2a6 /drivers/video/geode | |
parent | 57bac0f08a8b47a9d8e2ea60b2435dfc82dc3468 (diff) | |
download | kernel_samsung_aries-42b558d51cb0c8a83a17f22b3ec4325176d1797e.zip kernel_samsung_aries-42b558d51cb0c8a83a17f22b3ec4325176d1797e.tar.gz kernel_samsung_aries-42b558d51cb0c8a83a17f22b3ec4325176d1797e.tar.bz2 |
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 <eugeneteo@kernel.sg>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/geode')
-rw-r--r-- | drivers/video/geode/lxfb_core.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/video/geode/lxfb_core.c b/drivers/video/geode/lxfb_core.c index 5e30b40..583185f 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; |