summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfcambus <fcambus@openbsd.org>2018-07-12 12:47:57 +0000
committerfcambus <fcambus@openbsd.org>2018-07-12 12:47:57 +0000
commit1a13d2e55a5cd8711a9d9b8fb314ad5b3fd235fe (patch)
tree415e105c32ea07edf272ad0a5e6f18c62e5068e3
parentStop building rasops4 on amd64. (diff)
downloadwireguard-openbsd-1a13d2e55a5cd8711a9d9b8fb314ad5b3fd235fe.tar.xz
wireguard-openbsd-1a13d2e55a5cd8711a9d9b8fb314ad5b3fd235fe.zip
Remove cases for 1-bit and 4-bit color depths in efifb_ioctl(), as we
basically can't run in those modes. OK kettenis@
-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);
}