From e5121282be703e82d4eebabb7d124b04181572d0 Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Mon, 15 Dec 2008 00:46:58 +0000 Subject: [PATCH] Remove unnecessary optimization. The optimization (>> 9) will be automatically performed by the compiler. --- sys/kern/vfs_vnops.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index fa99e6f31f..3e9a8d1ff9 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -949,12 +949,7 @@ vn_stat(struct vnode *vp, struct stat *sb, struct ucred *cred) else sb->st_gen = (u_int32_t)vap->va_gen; -#if (S_BLKSIZE == 512) - /* Optimize this case */ - sb->st_blocks = vap->va_bytes >> 9; -#else sb->st_blocks = vap->va_bytes / S_BLKSIZE; -#endif sb->st_fsmid = vap->va_fsmid; return (0); } -- 2.41.0