Module Name: src
Committed By: christos
Date: Tue Aug 9 06:40:25 UTC 2016
Modified Files:
src/sys/ufs/ext2fs: ext2fs_extents.c
Log Message:
KNF
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/ufs/ext2fs/ext2fs_extents.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/ufs/ext2fs/ext2fs_extents.c
diff -u src/sys/ufs/ext2fs/ext2fs_extents.c:1.1 src/sys/ufs/ext2fs/ext2fs_extents.c:1.2
--- src/sys/ufs/ext2fs/ext2fs_extents.c:1.1 Fri Jun 3 11:35:48 2016
+++ src/sys/ufs/ext2fs/ext2fs_extents.c Tue Aug 9 02:40:24 2016
@@ -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 <[email protected]>
@@ -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 @@ ext4_ext_binsearch_index(struct inode *i
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 @@ ext4_ext_in_cache(struct inode *ip, dadd
ep->e_len = ecp->ec_len;
ret = ecp->ec_type;
}
- return (ret);
+ return ret;
}
/*
@@ -189,7 +189,7 @@ ext4_ext_find_extent(struct m_ext2fs *fs
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 @@ ext4_ext_find_extent(struct m_ext2fs *fs
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 @@ ext4_ext_find_extent(struct m_ext2fs *fs
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 @@ ext4_ext_find_extent(struct m_ext2fs *fs
path->ep_is_sparse = false;
ext4_ext_binsearch(ip, path, lbn, first_lbn, last_lbn);
- return (path);
+ return path;
}