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/c1c1d82838fb
branches: trunk
changeset: 826109:c1c1d82838fb
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 77692187cbcf -r c1c1d82838fb 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