projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57bac0f
)
drivers/video/geode/lxfb_core.c: fix lxfb_setup warning
author
Eugene Teo
<
[email protected]
>
Tue, 16 Oct 2007 08:28:51 +0000
(
01:28
-0700)
committer
Linus Torvalds
<
[email protected]
>
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 <
[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
patch
|
blob
|
history
diff --git
a/drivers/video/geode/lxfb_core.c
b/drivers/video/geode/lxfb_core.c
index 5e30b40c8c0f3bed5d3eb7f5ec9d1194b105a4d8..583185fd7c94b0d50241d6a9d0f49f53b72b59ec 100644
(file)
--- 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;