You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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 <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>
This commit is contained in:
committed by
Linus Torvalds
parent
57bac0f08a
commit
42b558d51c
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user