Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/tls-maxphys]: src/sys/miscfs/genfs We know vp is not NULL, no need to check
details: https://anonhg.NetBSD.org/src/rev/6bdd96302841
branches: tls-maxphys
changeset: 852928:6bdd96302841
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed Oct 10 16:30:42 2012 +0000
description:
We know vp is not NULL, no need to check
diffstat:
sys/miscfs/genfs/genfs_io.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8abe2e1000a6 -r 6bdd96302841 sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c Tue Oct 09 21:53:03 2012 +0000
+++ b/sys/miscfs/genfs/genfs_io.c Wed Oct 10 16:30:42 2012 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index