Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ext2fs KNF



details:   https://anonhg.NetBSD.org/src/rev/b0e4f7f44dc9
branches:  trunk
changeset: 346983:b0e4f7f44dc9
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Aug 09 06:40:24 2016 +0000

description:
KNF

diffstat:

 sys/ufs/ext2fs/ext2fs_extents.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (77 lines):

diff -r 0993eaabdc9c -r b0e4f7f44dc9 sys/ufs/ext2fs/ext2fs_extents.c
--- a/sys/ufs/ext2fs/ext2fs_extents.c   Mon Aug 08 17:44:24 2016 +0000
+++ b/sys/ufs/ext2fs/ext2fs_extents.c   Tue Aug 09 06:40:24 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_extents.c,v 1.1 2016/06/03 15:35:48 christos Exp $      */
+/*     $NetBSD: ext2fs_extents.c,v 1.2 2016/08/09 06:40:24 christos Exp $      */
 
 /*-
  * Copyright (c) 2010 Zheng Liu <lz%freebsd.org@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_extents.c,v 1.1 2016/06/03 15:35:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_extents.c,v 1.2 2016/08/09 06:40:24 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -80,13 +80,13 @@
                path->ep_sparse_ext.e_start_hi = 0;
                path->ep_sparse_ext.e_start_lo = 0;
                path->ep_is_sparse = true;
-               return (true);
+               return true;
        }
        path->ep_index = l - 1;
        *first_lbn = path->ep_index->ei_blk;
        if (path->ep_index < last)
                *last_lbn = l->ei_blk - 1;
-       return (false);
+       return false;
 }
 
 static void
@@ -156,7 +156,7 @@
                ep->e_len = ecp->ec_len;
                ret = ecp->ec_type;
        }
-       return (ret);
+       return ret;
 }
 
 /*
@@ -189,7 +189,7 @@
        ehp = (struct ext4_extent_header *)ip->i_din.e2fs_din->e2di_blocks;
 
        if (ehp->eh_magic != EXT4_EXT_MAGIC)
-               return (NULL);
+               return NULL;
 
        path->ep_header = ehp;
 
@@ -201,7 +201,7 @@
                path->ep_ext = NULL;
                if (ext4_ext_binsearch_index(ip, path, lbn, &first_lbn,
                    &last_lbn)) {
-                       return (path);
+                       return path;
                }
 
                nblk = (daddr_t)path->ep_index->ei_leaf_hi << 32 |
@@ -216,7 +216,7 @@
                if (error) {
                        brelse(path->ep_bp, 0);
                        path->ep_bp = NULL;
-                       return (NULL);
+                       return NULL;
                }
                ehp = (struct ext4_extent_header *)path->ep_bp->b_data;
                path->ep_header = ehp;
@@ -228,5 +228,5 @@
        path->ep_is_sparse = false;
 
        ext4_ext_binsearch(ip, path, lbn, first_lbn, last_lbn);
-       return (path);
+       return path;
 }



Home | Main Index | Thread Index | Old Index