Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=42b558d51cb0c8a83a17f22b3ec4325176d1797e
Commit:     42b558d51cb0c8a83a17f22b3ec4325176d1797e
Parent:     57bac0f08a8b47a9d8e2ea60b2435dfc82dc3468
Author:     Eugene Teo <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 16 01:28:51 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 09:43:15 2007 -0700

    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 <[EMAIL PROTECTED]>
    Cc: "Antonino A. Daplas" <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 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;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to