From: Michael Neumann Date: Mon, 15 Dec 2008 00:46:58 +0000 (+0000) Subject: Remove unnecessary optimization. X-Git-Url: https://gitweb.dragonflybsd.org/~lentferj/dragonfly.git/commitdiff_plain/e5121282be703e82d4eebabb7d124b04181572d0 Remove unnecessary optimization. The optimization (>> 9) will be automatically performed by the compiler. --- 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); }