diff options
author | Eugene Teo <eugeneteo@kernel.sg> | 2007-10-16 04:28:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:15 -0400 |
commit | 42b558d51cb0c8a83a17f22b3ec4325176d1797e (patch) | |
tree | 49af906ee029c1999731b6d6db4973241913d2a6 /drivers/video/geode | |
parent | 57bac0f08a8b47a9d8e2ea60b2435dfc82dc3468 (diff) |
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 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) | |||
566 | if (!options || !*options) | 566 | if (!options || !*options) |
567 | return 0; | 567 | return 0; |
568 | 568 | ||
569 | while (1) { | 569 | while ((opt = strsep(&options, ",")) != NULL) { |
570 | char *opt = strsep(&options, ","); | ||
571 | |||
572 | if (opt == NULL) | ||
573 | break; | ||
574 | |||
575 | if (!*opt) | 570 | if (!*opt) |
576 | continue; | 571 | continue; |
577 | 572 | ||