From: fcambus Date: Thu, 12 Jul 2018 12:47:57 +0000 (+0000) Subject: Remove cases for 1-bit and 4-bit color depths in efifb_ioctl(), as we X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1a13d2e55a5cd8711a9d9b8fb314ad5b3fd235fe;p=openbsd Remove cases for 1-bit and 4-bit color depths in efifb_ioctl(), as we basically can't run in those modes. OK kettenis@ --- 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 @@ -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); }