Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x68k/dev kill bogus inline



details:   https://anonhg.NetBSD.org/src/rev/2cb4f46c3a0e
branches:  trunk
changeset: 786963:2cb4f46c3a0e
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 24 18:24:27 2013 +0000

description:
kill bogus inline

diffstat:

 sys/arch/x68k/dev/fd.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r b27a2a523684 -r 2cb4f46c3a0e sys/arch/x68k/dev/fd.c
--- a/sys/arch/x68k/dev/fd.c    Fri May 24 18:06:05 2013 +0000
+++ b/sys/arch/x68k/dev/fd.c    Fri May 24 18:24:27 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.105 2012/10/14 19:06:25 tsutsui Exp $ */
+/*     $NetBSD: fd.c,v 1.106 2013/05/24 18:24:27 christos Exp $        */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.105 2012/10/14 19:06:25 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.106 2013/05/24 18:24:27 christos Exp $");
 
 #include "opt_ddb.h"
 #include "opt_m68k_arch.h"
@@ -296,7 +296,7 @@
 void fdcpseudointr(void *);
 void fdcretry(struct fdc_softc *);
 void fdfinish(struct fd_softc *, struct buf *);
-inline struct fd_type *fd_dev_to_type(struct fd_softc *, dev_t);
+struct fd_type *fd_dev_to_type(struct fd_softc *, dev_t);
 int fdformat(dev_t, struct ne7_fd_formb *, struct lwp *);
 static int fdcpoll(struct fdc_softc *);
 static int fdgetdisklabel(struct fd_softc *, dev_t);
@@ -648,12 +648,12 @@
            RND_TYPE_DISK, 0);
 }
 
-inline struct fd_type *
+struct fd_type *
 fd_dev_to_type(struct fd_softc *fd, dev_t dev)
 {
-       int type = FDTYPE(dev);
+       size_t type = FDTYPE(dev);
 
-       if (type > (sizeof(fd_types) / sizeof(fd_types[0])))
+       if (type > __arraycount(fd_types))
                return NULL;
        return &fd_types[type];
 }



Home | Main Index | Thread Index | Old Index