git: 51a7be5f6036 - main - Style

Konstantin Belousov kib at FreeBSD.org
Sun Apr 4 17:39:30 UTC 2021


The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=51a7be5f6036ebd47c8b3f704d52e7ec3f837114

commit 51a7be5f6036ebd47c8b3f704d52e7ec3f837114
Author:     Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-04-04 16:27:42 +0000
Commit:     Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-04-04 17:39:06 +0000

    Style
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
---
 sys/vm/vm_kern.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 637298eb2caa..f767f01acaa5 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -891,7 +891,7 @@ debug_vm_lowmem(SYSCTL_HANDLER_ARGS)
 
 	i = 0;
 	error = sysctl_handle_int(oidp, &i, 0, req);
-	if (error)
+	if (error != 0)
 		return (error);
 	if ((i & ~(VM_LOW_KMEM | VM_LOW_PAGES)) != 0)
 		return (EINVAL);
@@ -900,5 +900,6 @@ debug_vm_lowmem(SYSCTL_HANDLER_ARGS)
 	return (0);
 }
 
-SYSCTL_PROC(_debug, OID_AUTO, vm_lowmem, CTLTYPE_INT | CTLFLAG_MPSAFE | CTLFLAG_RW, 0, 0,
-    debug_vm_lowmem, "I", "set to trigger vm_lowmem event with given flags");
+SYSCTL_PROC(_debug, OID_AUTO, vm_lowmem,
+    CTLTYPE_INT | CTLFLAG_MPSAFE | CTLFLAG_RW, 0, 0, debug_vm_lowmem, "I",
+    "set to trigger vm_lowmem event with given flags");


More information about the dev-commits-src-all mailing list