diff options
author | dt <dt@FreeBSD.org> | 1999-06-01 20:41:26 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1999-06-01 20:41:26 +0000 |
commit | 14ffe630bdd64d3c182a530053fc1b98911e04ed (patch) | |
tree | 7d3fd775843fd4110a503867df6b628ff021e416 /sys | |
parent | 37d5c28f07e5ec81870c8d94332e1a3deaa650cd (diff) | |
download | FreeBSD-src-14ffe630bdd64d3c182a530053fc1b98911e04ed.zip FreeBSD-src-14ffe630bdd64d3c182a530053fc1b98911e04ed.tar.gz |
|| vs && confusion in cdevsw_add().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index b8f8586..2bc5fa1 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_conf.c,v 1.41 1999/05/31 11:27:28 phk Exp $ + * $Id: kern_conf.c,v 1.42 1999/06/01 18:56:24 phk Exp $ */ #include <sys/param.h> @@ -114,7 +114,7 @@ cdevsw_add(struct cdevsw *newentry) cdevsw[newentry->d_maj] = newentry; - if (newentry->d_bmaj >= 0 || newentry->d_bmaj < NUMCDEVSW) + if (newentry->d_bmaj >= 0 && newentry->d_bmaj < NUMCDEVSW) bmaj2cmaj[newentry->d_bmaj] = newentry->d_maj; return 0; |