diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2023-03-06 17:20:07 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2023-03-06 17:20:07 +0000 |
commit | 5b58ac8933e92283801da5dec28e108efe2cb9af (patch) | |
tree | 253d0e7667b84e0eccd859fd85186d6ddab389ad /sys/arch | |
parent | f9c9584b084610d30872d9cd3ad09cff1c101dca (diff) |
In iskmemdev(), do not check for the minor of /dev/io. It has been
deprecated more than 25 years ago and removed more than 20.
From Crystal Kolipe, thanks!
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/conf.c | 4 | ||||
-rw-r--r-- | sys/arch/arm64/arm64/conf.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/conf.c | 4 | ||||
-rw-r--r-- | sys/arch/riscv64/riscv64/conf.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/amd64/amd64/conf.c b/sys/arch/amd64/amd64/conf.c index 83f0089061d..f87df421880 100644 --- a/sys/arch/amd64/amd64/conf.c +++ b/sys/arch/amd64/amd64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.77 2023/01/14 12:11:10 kettenis Exp $ */ +/* $OpenBSD: conf.c,v 1.78 2023/03/06 17:20:05 miod Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -313,7 +313,7 @@ int iskmemdev(dev_t dev) { - return (major(dev) == mem_no && (minor(dev) < 2 || minor(dev) == 14)); + return (major(dev) == mem_no && minor(dev) < 2); } /* diff --git a/sys/arch/arm64/arm64/conf.c b/sys/arch/arm64/arm64/conf.c index 4e47542efca..e730a4b265f 100644 --- a/sys/arch/arm64/arm64/conf.c +++ b/sys/arch/arm64/arm64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.21 2023/01/14 12:11:11 kettenis Exp $ */ +/* $OpenBSD: conf.c,v 1.22 2023/03/06 17:20:06 miod Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -255,7 +255,7 @@ int iskmemdev(dev_t dev) { - return (major(dev) == CMAJ_MM && (minor(dev) < 2 || minor(dev) == 14)); + return (major(dev) == CMAJ_MM && minor(dev) < 2); } /* diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c index dab1da63a89..6761ca19ad5 100644 --- a/sys/arch/i386/i386/conf.c +++ b/sys/arch/i386/i386/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.175 2023/01/30 10:49:04 jsg Exp $ */ +/* $OpenBSD: conf.c,v 1.176 2023/03/06 17:20:06 miod Exp $ */ /* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */ /* @@ -309,7 +309,7 @@ dev_t swapdev = makedev(1, 0); int iskmemdev(dev_t dev) { - return (major(dev) == mem_no && (minor(dev) < 2 || minor(dev) == 14)); + return (major(dev) == mem_no && minor(dev) < 2); } /* diff --git a/sys/arch/riscv64/riscv64/conf.c b/sys/arch/riscv64/riscv64/conf.c index 71b2d9fb7ca..cf748881f2e 100644 --- a/sys/arch/riscv64/riscv64/conf.c +++ b/sys/arch/riscv64/riscv64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.16 2023/01/24 13:29:51 jca Exp $ */ +/* $OpenBSD: conf.c,v 1.17 2023/03/06 17:20:06 miod Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -253,7 +253,7 @@ int iskmemdev(dev_t dev) { - return (major(dev) == mem_no && (minor(dev) < 2 || minor(dev) == 14)); + return (major(dev) == mem_no && minor(dev) < 2); } /* |