]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/video/geode/lxfb_core.c: fix lxfb_setup warning
authorEugene Teo <eugeneteo@kernel.sg>
Tue, 16 Oct 2007 08:28:51 +0000 (01:28 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:15 +0000 (09:43 -0700)
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>
drivers/video/geode/lxfb_core.c

index 5e30b40c8c0f3bed5d3eb7f5ec9d1194b105a4d8..583185fd7c94b0d50241d6a9d0f49f53b72b59ec 100644 (file)
@@ -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;