Module Name: src Committed By: mrg Date: Tue Dec 8 02:21:16 UTC 2009
Modified Files: src/sys/arch/mips/mips [matt-nb5-mips64]: cpu_exec.c Log Message: remove an unnecessary variable. To generate a diff of this commit: cvs rdiff -u -r1.50.54.1.4.9 -r1.50.54.1.4.10 \ src/sys/arch/mips/mips/cpu_exec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/mips/cpu_exec.c diff -u src/sys/arch/mips/mips/cpu_exec.c:1.50.54.1.4.9 src/sys/arch/mips/mips/cpu_exec.c:1.50.54.1.4.10 --- src/sys/arch/mips/mips/cpu_exec.c:1.50.54.1.4.9 Sun Sep 13 23:06:22 2009 +++ src/sys/arch/mips/mips/cpu_exec.c Tue Dec 8 02:21:16 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu_exec.c,v 1.50.54.1.4.9 2009/09/13 23:06:22 matt Exp $ */ +/* $NetBSD: cpu_exec.c,v 1.50.54.1.4.10 2009/12/08 02:21:16 mrg Exp $ */ /* * Copyright (c) 1992, 1993 @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.50.54.1.4.9 2009/09/13 23:06:22 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.50.54.1.4.10 2009/12/08 02:21:16 mrg Exp $"); #include "opt_compat_netbsd.h" #include "opt_compat_ultrix.h" @@ -314,7 +314,6 @@ elf_check_itp(struct exec_package *epp, const char *itp, const char *itp_suffix) { - int error = 0; if (itp) { /* * If the path is exactly "/usr/libexec/ld.elf_so", first @@ -326,6 +325,7 @@ strcmp(itp, "/libexec/ld.elf_so") == 0) { struct nameidata nd; char *path; + int error; path = PNBUF_GET(); snprintf(path, MAXPATHLEN, "%s-%s", itp, itp_suffix); @@ -341,10 +341,9 @@ epp->ep_interp = nd.ni_vp; } PNBUF_PUT(path); - error = 0; } } - return error; + return 0; } #if EXEC_ELF32