Skip to contentSkip to conversation

drivers/video/geode/lxfb_core.c: fix lxfb_setup warning

PATCH New Eugene Teo 1 participant 1 message Aug 1, 2007 Framebuffer layer

lore
Share & tools
lore

Eugene Teo

author
#0 lore raw

PATCH 1/1 drivers/video/geode/lxfb_core.c: fix lxfb_setup warning

This patch fixes the following warning:

drivers/video/geode/lxfb_core.c: In function 'lxfb_setup':
drivers/video/geode/lxfb_core.c:564: warning: unused variable 'opt'

---
 drivers/video/geode/lxfb_core.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
drivers/video/geode/lxfb_core.c +1 -6
index 5e30b40..255c8b3 100644
@@ -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;