Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Avoid return with expression in void functions.



details:   https://anonhg.NetBSD.org/src/rev/659726ba1198
branches:  trunk
changeset: 770398:659726ba1198
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Oct 15 19:02:27 2011 +0000

description:
Avoid return with expression in void functions.

diffstat:

 sys/kern/subr_vmem.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r d7ea7fd5dacf -r 659726ba1198 sys/kern/subr_vmem.c
--- a/sys/kern/subr_vmem.c      Sat Oct 15 16:35:45 2011 +0000
+++ b/sys/kern/subr_vmem.c      Sat Oct 15 19:02:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_vmem.c,v 1.62 2011/10/02 21:32:48 rmind Exp $     */
+/*     $NetBSD: subr_vmem.c,v 1.63 2011/10/15 19:02:27 rmind Exp $     */
 
 /*-
  * Copyright (c)2006,2007,2008,2009 YAMAMOTO Takashi,
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.62 2011/10/02 21:32:48 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.63 2011/10/15 19:02:27 rmind Exp $");
 
 #if defined(_KERNEL)
 #include "opt_ddb.h"
@@ -207,7 +207,7 @@
 static inline void
 xfree(void *p)
 {
-       return free(p, M_VMEM);
+       free(p, M_VMEM);
 }
 
 /* ---- boundary tag */
@@ -1067,7 +1067,8 @@
                int qidx = (size + vm->vm_quantum_mask) >> vm->vm_quantum_shift;
                qcache_t *qc = vm->vm_qcache[qidx - 1];
 
-               return pool_cache_put(qc->qc_cache, (void *)addr);
+               pool_cache_put(qc->qc_cache, (void *)addr);
+               return;
        }
 #endif /* defined(QCACHE) */
 



Home | Main Index | Thread Index | Old Index