Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm uvm/uvm_device.c: Sprinkle KNF.
details: https://anonhg.NetBSD.org/src/rev/619ffac7180f
branches: trunk
changeset: 368344:619ffac7180f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 06 01:15:51 2022 +0000
description:
uvm/uvm_device.c: Sprinkle KNF.
diffstat:
sys/uvm/uvm_device.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (75 lines):
diff -r 1c118234e04f -r 619ffac7180f sys/uvm/uvm_device.c
--- a/sys/uvm/uvm_device.c Wed Jul 06 01:15:32 2022 +0000
+++ b/sys/uvm/uvm_device.c Wed Jul 06 01:15:51 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_device.c,v 1.75 2022/07/06 01:13:30 riastradh Exp $ */
+/* $NetBSD: uvm_device.c,v 1.76 2022/07/06 01:15:51 riastradh Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_device.c,v 1.75 2022/07/06 01:13:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_device.c,v 1.76 2022/07/06 01:15:51 riastradh Exp $");
#include "opt_uvmhist.h"
@@ -125,11 +125,11 @@
cdev = cdevsw_lookup(device);
if (cdev == NULL) {
- return (NULL);
+ return NULL;
}
mapfn = cdev->d_mmap;
if (mapfn == NULL || mapfn == nommap) {
- return(NULL);
+ return NULL;
}
/*
@@ -211,7 +211,7 @@
wakeup(lcv);
lcv->u_flags &= ~(UVM_DEVICE_WANTED|UVM_DEVICE_HOLD);
mutex_exit(&udv_lock);
- return(&lcv->u_obj);
+ return &lcv->u_obj;
}
/*
@@ -257,7 +257,7 @@
udv->u_device = device;
LIST_INSERT_HEAD(&udv_list, udv, u_list);
mutex_exit(&udv_lock);
- return(&udv->u_obj);
+ return &udv->u_obj;
}
/*NOTREACHED*/
}
@@ -382,7 +382,7 @@
UVMHIST_LOG(maphist, "<- failed -- COW entry (etype=%#jx)",
entry->etype, 0,0,0);
uvmfault_unlockall(ufi, ufi->entry->aref.ar_amap, uobj);
- return(EIO);
+ return EIO;
}
/*
@@ -393,7 +393,7 @@
if (cdevsw_lookup(device) == NULL) {
/* XXX This should not happen */
uvmfault_unlockall(ufi, ufi->entry->aref.ar_amap, uobj);
- return (EIO);
+ return EIO;
}
/*
@@ -453,5 +453,5 @@
pmap_update(ufi->orig_map->pmap);
uvmfault_unlockall(ufi, ufi->entry->aref.ar_amap, uobj);
- return (retval);
+ return retval;
}
Home |
Main Index |
Thread Index |
Old Index