Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/amiga Simplify. error is constant, so replace...
details: https://anonhg.NetBSD.org/src/rev/2af4b0d5bffc
branches: trunk
changeset: 355808:2af4b0d5bffc
user: maya <maya%NetBSD.org@localhost>
date: Tue Aug 15 09:51:43 2017 +0000
description:
Simplify. error is constant, so replace it by its value. NFCI
diffstat:
sys/arch/amiga/amiga/machdep.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (37 lines):
diff -r e8a3e4629754 -r 2af4b0d5bffc sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c Tue Aug 15 09:49:38 2017 +0000
+++ b/sys/arch/amiga/amiga/machdep.c Tue Aug 15 09:51:43 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.247 2016/12/23 07:40:05 maya Exp $ */
+/* $NetBSD: machdep.c,v 1.248 2017/08/15 09:51:43 maya Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -50,7 +50,7 @@
#include "empm.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.247 2016/12/23 07:40:05 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.248 2017/08/15 09:51:43 maya Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1181,17 +1181,14 @@
int
cpu_exec_aout_makecmds(struct lwp *l, struct exec_package *epp)
{
- int error = ENOEXEC;
#ifdef COMPAT_NOMID
struct exec *execp = epp->ep_hdr;
-#endif
-#ifdef COMPAT_NOMID
if (!((execp->a_midmag >> 16) & 0x0fff)
&& execp->a_midmag == ZMAGIC)
return(exec_aout_prep_zmagic(l, epp));
#endif
- return(error);
+ return ENOEXEC;
}
#ifdef MODULAR
Home |
Main Index |
Thread Index |
Old Index