* [PATCH] drivers/video/geode/lxfb_core.c: fix lxfb_setup warning
@ 2007-08-01 10:48 Eugene Teo
0 siblings, 0 replies; only message in thread
From: Eugene Teo @ 2007-08-01 10:48 UTC (permalink / raw)
To: linux-kernel; +Cc: info-linux
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'
Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
---
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..255c8b3 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-08-01 10:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-01 10:48 [PATCH] drivers/video/geode/lxfb_core.c: fix lxfb_setup warning Eugene Teo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome