Module Name:    src
Committed By:   uebayasi
Date:           Thu Nov 18 01:53:05 UTC 2010

Modified Files:
        src/sys/miscfs/genfs [uebayasi-xip]: genfs_io.c

Log Message:
Style change.


To generate a diff of this commit:
cvs rdiff -u -r1.36.2.32 -r1.36.2.33 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.36.2.32 src/sys/miscfs/genfs/genfs_io.c:1.36.2.33
--- src/sys/miscfs/genfs/genfs_io.c:1.36.2.32	Tue Nov 16 07:44:25 2010
+++ src/sys/miscfs/genfs/genfs_io.c	Thu Nov 18 01:53:04 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: genfs_io.c,v 1.36.2.32 2010/11/16 07:44:25 uebayasi Exp $	*/
+/*	$NetBSD: genfs_io.c,v 1.36.2.33 2010/11/18 01:53:04 uebayasi Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.36.2.32 2010/11/16 07:44:25 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.36.2.33 2010/11/18 01:53:04 uebayasi Exp $");
 
 #include "opt_xip.h"
 
@@ -900,15 +900,14 @@
 		struct vm_page *pg = pps[i];
 
 		KASSERT((pg->flags & PG_RDONLY) != 0);
-		if (pg == zero_page) {
-		} else {
-			KASSERT((pg->flags & PG_BUSY) == 0);
-			KASSERT((pg->flags & PG_CLEAN) != 0);
-			KASSERT((pg->flags & PG_DEVICE) != 0);
-			pg->flags |= PG_BUSY;
-			pg->flags &= ~PG_FAKE;
-			pg->uobject = &vp->v_uobj;
-		}
+		if (pg == zero_page)
+			continue;
+		KASSERT((pg->flags & PG_BUSY) == 0);
+		KASSERT((pg->flags & PG_CLEAN) != 0);
+		KASSERT((pg->flags & PG_DEVICE) != 0);
+		pg->flags |= PG_BUSY;
+		pg->flags &= ~PG_FAKE;
+		pg->uobject = &vp->v_uobj;
 	}
 
 	if ((flags & PGO_LOCKED) == 0)
@@ -1525,20 +1524,19 @@
 			pg = pgs[i];
 			if (pg == NULL || pg == PGO_DONTCARE)
 				continue;
-			if (pg == uvm_page_zeropage) {
+			if (pg == uvm_page_zeropage)
 				/* Do nothing for holes. */
-			} else {
-				/*
-				 * Freeing normal XIP pages; nothing to do.
-				 */
-				pmap_page_protect(pg, VM_PROT_NONE);
-				KASSERT((pg->flags & PG_BUSY) != 0);
-				KASSERT((pg->flags & PG_RDONLY) != 0);
-				KASSERT((pg->flags & PG_CLEAN) != 0);
-				KASSERT((pg->flags & PG_FAKE) == 0);
-				KASSERT((pg->flags & PG_DEVICE) != 0);
-				pg->flags &= ~PG_BUSY;
-			}
+				continue;
+			/*
+			 * Freeing normal XIP pages; nothing to do.
+			 */
+			pmap_page_protect(pg, VM_PROT_NONE);
+			KASSERT((pg->flags & PG_BUSY) != 0);
+			KASSERT((pg->flags & PG_RDONLY) != 0);
+			KASSERT((pg->flags & PG_CLEAN) != 0);
+			KASSERT((pg->flags & PG_FAKE) == 0);
+			KASSERT((pg->flags & PG_DEVICE) != 0);
+			pg->flags &= ~PG_BUSY;
 		}
 		off += npages << PAGE_SHIFT;
 	}

Reply via email to