Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Cosmetics: return is an operator, not a function: r...
details: https://anonhg.NetBSD.org/src/rev/c990fed753d2
branches: trunk
changeset: 326552:c990fed753d2
user: martin <martin%NetBSD.org@localhost>
date: Sun Feb 02 14:50:46 2014 +0000
description:
Cosmetics: return is an operator, not a function: remove ().
diffstat:
sys/kern/kern_exec.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (58 lines):
diff -r 7e47ad692d97 -r c990fed753d2 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Sun Feb 02 14:48:57 2014 +0000
+++ b/sys/kern/kern_exec.c Sun Feb 02 14:50:46 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.373 2014/02/02 14:48:57 martin Exp $ */
+/* $NetBSD: kern_exec.c,v 1.374 2014/02/02 14:50:46 martin Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.373 2014/02/02 14:48:57 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.374 2014/02/02 14:50:46 martin Exp $");
#include "opt_exec.h"
#include "opt_execfmt.h"
@@ -908,7 +908,7 @@
KASSERT(no_local_exec_lock || rw_lock_held(&exec_lock));
KASSERT(data != NULL);
if (data == NULL)
- return (EINVAL);
+ return EINVAL;
p = l->l_proc;
if (no_local_exec_lock)
@@ -1427,7 +1427,7 @@
pathbuf_destroy(data->ed_pathbuf);
PNBUF_PUT(data->ed_resolvedpathbuf);
DPRINTF(("%s finished\n", __func__));
- return (EJUSTRETURN);
+ return EJUSTRETURN;
exec_abort:
SDT_PROBE(proc,,,exec_failure, error, 0, 0, 0, 0);
@@ -1757,7 +1757,7 @@
printf("kernel mapping failed %d\n", error);
(*uobj->pgops->pgo_detach)(uobj);
mutex_exit(&sigobject_lock);
- return (error);
+ return error;
}
memcpy((void *)va, e->e_sigcode, sz);
#ifdef PMAP_NEED_PROCWR
@@ -1795,10 +1795,10 @@
__func__, __LINE__, &p->p_vmspace->vm_map, round_page(sz),
va, error));
(*uobj->pgops->pgo_detach)(uobj);
- return (error);
+ return error;
}
p->p_sigctx.ps_sigcode = (void *)va;
- return (0);
+ return 0;
}
/*
Home |
Main Index |
Thread Index |
Old Index