Remove unnecessary optimization.
authorMichael Neumann <mneumann@ntecs.de>
Mon, 15 Dec 2008 00:46:58 +0000 (00:46 +0000)
committerMichael Neumann <mneumann@ntecs.de>
Mon, 15 Dec 2008 00:46:58 +0000 (00:46 +0000)
The optimization (>> 9) will be automatically performed by the compiler.

sys/kern/vfs_vnops.c

index fa99e6f..3e9a8d1 100644 (file)
@@ -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);
 }