Source-Changes-HG archive

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

[src/trunk]: src/sys/sys s/if (cond) return true; else return false; /return c...



details:   https://anonhg.NetBSD.org/src/rev/e4bd8a118bec
branches:  trunk
changeset: 790093:e4bd8a118bec
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 18 14:37:24 2013 +0000

description:
s/if (cond) return true; else return false;/return cond;/

diffstat:

 sys/sys/wapbl.h |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (21 lines):

diff -r f3b3ba25b066 -r e4bd8a118bec sys/sys/wapbl.h
--- a/sys/sys/wapbl.h   Wed Sep 18 14:30:45 2013 +0000
+++ b/sys/sys/wapbl.h   Wed Sep 18 14:37:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wapbl.h,v 1.13 2011/11/21 04:36:06 christos Exp $      */
+/*     $NetBSD: wapbl.h,v 1.14 2013/09/18 14:37:24 christos Exp $      */
 
 /*-
  * Copyright (c) 2003,2008 The NetBSD Foundation, Inc.
@@ -206,10 +206,7 @@
                return false;
 
        mp = wapbl_vptomp(vp);
-       if (mp && mp->mnt_wapbl)
-               return true;
-       else
-               return false;
+       return mp && mp->mnt_wapbl;
 }
 
 #endif /* _KERNEL */



Home | Main Index | Thread Index | Old Index