summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorFrederic Cambus <fcambus@cvs.openbsd.org>2018-07-12 12:47:58 +0000
committerFrederic Cambus <fcambus@cvs.openbsd.org>2018-07-12 12:47:58 +0000
commitb3a770086c7e43e877866d79c355f1d4870b3462 (patch)
treef9ba39c839e134bced19625d42b936130ec60205 /sys/arch/amd64
parent0902054a7b06380369c9c2da1359efd9c8d9661b (diff)
Remove cases for 1-bit and 4-bit color depths in efifb_ioctl(), as we
basically can't run in those modes. OK kettenis@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/efifb.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/amd64/amd64/efifb.c b/sys/arch/amd64/amd64/efifb.c
index e3dc22abfe2..3a2ed3625fc 100644
--- a/sys/arch/amd64/amd64/efifb.c
+++ b/sys/arch/amd64/amd64/efifb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efifb.c,v 1.16 2018/04/27 21:36:12 jcs Exp $ */
+/* $OpenBSD: efifb.c,v 1.17 2018/07/12 12:47:57 fcambus Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -326,12 +326,6 @@ efifb_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p)
case 8:
*(u_int *)data = WSDISPLAYIO_DEPTH_8;
break;
- case 4:
- *(u_int *)data = WSDISPLAYIO_DEPTH_4;
- break;
- case 1:
- *(u_int *)data = WSDISPLAYIO_DEPTH_1;
- break;
default:
return (-1);
}