aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fb/vesa.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-03-24 15:37:47 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-03-24 15:37:47 +0000
commit1e161437f8e1defd8dd87315c7fe14317fd568da (patch)
treeab25901d4be317fc52f8c8ccdac152659d2f5736 /sys/dev/fb/vesa.c
parent592a685e337043edc9cbf12c51e300c1994cbd7c (diff)
Notes
Diffstat (limited to 'sys/dev/fb/vesa.c')
-rw-r--r--sys/dev/fb/vesa.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c
index 733f5b86aa39..0c1d5ddce239 100644
--- a/sys/dev/fb/vesa.c
+++ b/sys/dev/fb/vesa.c
@@ -1370,8 +1370,6 @@ vesa_save_palette(video_adapter_t *adp, u_char *palette)
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 8 : 6;
if (vesa_bios_save_palette(0, 256, palette, bits) == 0)
return (0);
- if (bits > 6)
- return (1);
}
return ((*prevvidsw->save_palette)(adp, palette));
@@ -1386,8 +1384,6 @@ vesa_load_palette(video_adapter_t *adp, u_char *palette)
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 8 : 6;
if (vesa_bios_load_palette(0, 256, palette, bits) == 0)
return (0);
- if (bits > 6)
- return (1);
}
return ((*prevvidsw->load_palette)(adp, palette));