diff options
author | Eugene Teo <eugeneteo@kernel.sg> | 2007-10-16 10:28:51 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 18:43:15 +0200 |
commit | 42b558d51cb0c8a83a17f22b3ec4325176d1797e (patch) | |
tree | 49af906ee029c1999731b6d6db4973241913d2a6 | |
parent | pm3fb: checkpatch fixes (diff) | |
download | linux-42b558d51cb0c8a83a17f22b3ec4325176d1797e.tar.xz linux-42b558d51cb0c8a83a17f22b3ec4325176d1797e.zip |
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>
-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 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; |