From ba4f8937dd4aef3e097945af787b6f1959389ce1 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Sat, 11 Dec 2004 14:26:32 +0000 Subject: match comments with reality and use 'null' for pointers in incore() --- sys/kern/vfs_bio.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sys/kern/vfs_bio.c') 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); } /* -- cgit v1.2.3