Module Name: src
Committed By: bouyer
Date: Wed Oct 10 16:30:42 UTC 2012
Modified Files:
src/sys/miscfs/genfs [tls-maxphys]: genfs_io.c
Log Message:
We know vp is not NULL, no need to check
To generate a diff of this commit:
cvs rdiff -u -r1.55.2.1 -r1.55.2.2 src/sys/miscfs/genfs/genfs_io.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/miscfs/genfs/genfs_io.c
diff -u src/sys/miscfs/genfs/genfs_io.c:1.55.2.1 src/sys/miscfs/genfs/genfs_io.c:1.55.2.2
--- src/sys/miscfs/genfs/genfs_io.c:1.55.2.1 Wed Sep 12 06:15:35 2012
+++ src/sys/miscfs/genfs/genfs_io.c Wed Oct 10 16:30:42 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_io.c,v 1.55.2.1 2012/09/12 06:15:35 tls Exp $ */
+/* $NetBSD: genfs_io.c,v 1.55.2.2 2012/10/10 16:30:42 bouyer Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.55.2.1 2012/09/12 06:15:35 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.55.2.2 2012/10/10 16:30:42 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -830,7 +830,7 @@ genfs_do_putpages(struct vnode *vp, off_
bool onworklst;
static int printed;
- if (vp && vp->v_mount && vp->v_mount->mnt_maxphys) {
+ if (vp->v_mount && vp->v_mount->mnt_maxphys) {
maxpages = vp->v_mount->mnt_maxphys >> PAGE_SHIFT;
} else {
maxpages = MAXPHYS >> PAGE_SHIFT;