diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2004-12-11 14:26:32 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2004-12-11 14:26:32 +0000 |
commit | ba4f8937dd4aef3e097945af787b6f1959389ce1 (patch) | |
tree | 8c69b8ce69ddde398c52c658be689ab39949190f /sys/kern | |
parent | c8f9f8f01b0474052b6abaaa267102e80576ce9d (diff) |
match comments with reality and use 'null' for pointers in incore()
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_bio.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 6295cedd1f3..63ccd7eab52 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.73 2004/12/05 04:42:42 jsg Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.74 2004/12/11 14:26:31 pedro Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /*- @@ -569,11 +569,8 @@ brelse(struct buf *bp) } /* - * Determine if a block is in the cache. - * Just look on what would be its hash chain. If it's there, return - * a pointer to it, unless it's marked invalid. If it's marked invalid, - * we normally don't return the buffer, unless the caller explicitly - * wants us to. + * Determine if a block is in the cache. Just look on what would be its hash + * chain. If it's there, return a pointer to it, unless it's marked invalid. */ struct buf * incore(struct vnode *vp, daddr_t blkno) @@ -587,7 +584,7 @@ incore(struct vnode *vp, daddr_t blkno) return (bp); } - return (0); + return (NULL); } /* |