patch-2.4.15 linux/drivers/video/virgefb.c
Next file: linux/fs/Config.in
Previous file: linux/drivers/video/vga16fb.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Wed Nov 14 14:52:20 2001
- Orig file:
v2.4.14/linux/drivers/video/virgefb.c
- Orig date:
Tue Oct 23 22:48:53 2001
diff -u --recursive --new-file v2.4.14/linux/drivers/video/virgefb.c linux/drivers/video/virgefb.c
@@ -1085,7 +1085,9 @@
if (!options || !*options)
return 0;
- while (this_opt = strsep(&options, ",")) {
+ while ((this_opt = strsep(&options, ",")) != NULL) {
+ if (!*this_opt)
+ continue;
if (!strcmp(this_opt, "inverse")) {
Cyberfb_inverse = 1;
fb_invert_cmaps();
@@ -1099,6 +1101,7 @@
}
else
get_video_mode(this_opt);
+ }
DPRINTK("default mode: xres=%d, yres=%d, bpp=%d\n",virgefb_default.xres,
virgefb_default.yres,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)