Remove cases for 1-bit and 4-bit color depths in efifb_ioctl(), as we
authorfcambus <fcambus@openbsd.org>
Thu, 12 Jul 2018 12:47:57 +0000 (12:47 +0000)
committerfcambus <fcambus@openbsd.org>
Thu, 12 Jul 2018 12:47:57 +0000 (12:47 +0000)
basically can't run in those modes.

OK kettenis@

sys/arch/amd64/amd64/efifb.c

index e3dc22a..3a2ed36 100644 (file)
@@ -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);
                }