Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Unused inits (harmless).



details:   https://anonhg.NetBSD.org/src/rev/bcf5d91f5d7c
branches:  trunk
changeset: 809625:bcf5d91f5d7c
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Jul 24 13:02:52 2015 +0000

description:
Unused inits (harmless).

Found by Brainy.

diffstat:

 sys/compat/common/kern_time_50.c           |  6 +++---
 sys/compat/common/vfs_syscalls_20.c        |  8 ++++----
 sys/compat/linux/common/linux_socket.c     |  6 +++---
 sys/compat/linux32/common/linux32_socket.c |  6 +++---
 sys/compat/netbsd32/netbsd32_compat_50.c   |  6 +++---
 sys/compat/ultrix/ultrix_fs.c              |  6 +++---
 sys/kern/kern_ntptime.c                    |  6 +++---
 sys/kern/kern_time.c                       |  8 ++++----
 sys/kern/kern_veriexec.c                   |  6 +++---
 sys/kern/sys_lwp.c                         |  6 +++---
 sys/kern/vfs_syscalls.c                    |  6 +++---
 sys/miscfs/procfs/procfs_linux.c           |  7 +++----
 sys/ufs/ffs/ffs_vfsops.c                   |  6 +++---
 13 files changed, 41 insertions(+), 42 deletions(-)

diffs (truncated from 377 to 300 lines):

diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/compat/common/kern_time_50.c
--- a/sys/compat/common/kern_time_50.c  Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/compat/common/kern_time_50.c  Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_time_50.c,v 1.28 2014/11/09 17:48:07 maxv Exp $   */
+/*     $NetBSD: kern_time_50.c,v 1.29 2015/07/24 13:02:52 maxv Exp $   */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_time_50.c,v 1.28 2014/11/09 17:48:07 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time_50.c,v 1.29 2015/07/24 13:02:52 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_aio.h"
@@ -123,7 +123,7 @@
        } */
        struct timespec50 ats50;
        struct timespec ats;
-       int error = 0;
+       int error;
 
        error = clock_getres1(SCARG(uap, clock_id), &ats);
        if (error != 0)
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/compat/common/vfs_syscalls_20.c
--- a/sys/compat/common/vfs_syscalls_20.c       Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/compat/common/vfs_syscalls_20.c       Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls_20.c,v 1.38 2014/09/05 09:21:54 matt Exp $        */
+/*     $NetBSD: vfs_syscalls_20.c,v 1.39 2015/07/24 13:02:52 maxv Exp $        */
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_20.c,v 1.38 2014/09/05 09:21:54 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_20.c,v 1.39 2015/07/24 13:02:52 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -90,7 +90,7 @@
 vfs2fs(struct statfs12 *bfs, const struct statvfs *fs)
 {
        struct statfs12 ofs;
-       int i = 0;
+       int i;
        ofs.f_type = 0;
        ofs.f_oflags = (short)fs->f_flag;
 
@@ -139,7 +139,7 @@
        } */
        struct mount *mp;
        struct statvfs *sbuf;
-       int error = 0;
+       int error;
        struct vnode *vp;
 
        error = namei_simple_user(SCARG(uap, path),
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/compat/linux/common/linux_socket.c
--- a/sys/compat/linux/common/linux_socket.c    Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/compat/linux/common/linux_socket.c    Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_socket.c,v 1.125 2015/05/24 17:07:26 rtr Exp $   */
+/*     $NetBSD: linux_socket.c,v 1.126 2015/07/24 13:02:52 maxv Exp $  */
 
 /*-
  * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.125 2015/05/24 17:07:26 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.126 2015/07/24 13:02:52 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -1115,7 +1115,7 @@
        struct ifaddr *ifa;
        struct sockaddr *sa;
        struct osockaddr *osa;
-       int space = 0, error = 0;
+       int space = 0, error;
        const int sz = (int)sizeof(ifr);
        bool docopy;
 
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/compat/linux32/common/linux32_socket.c
--- a/sys/compat/linux32/common/linux32_socket.c        Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/compat/linux32/common/linux32_socket.c        Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux32_socket.c,v 1.19 2014/11/26 09:53:53 ozaki-r Exp $ */
+/*     $NetBSD: linux32_socket.c,v 1.20 2015/07/24 13:02:52 maxv Exp $ */
 
 /*-
  * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.19 2014/11/26 09:53:53 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_socket.c,v 1.20 2015/07/24 13:02:52 maxv Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -416,7 +416,7 @@
        struct ifaddr *ifa;
        struct sockaddr *sa;
        struct osockaddr *osa;
-       int space = 0, error = 0;
+       int space = 0, error;
        const int sz = (int)sizeof(ifr);
        bool docopy;
 
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/compat/netbsd32/netbsd32_compat_50.c
--- a/sys/compat/netbsd32/netbsd32_compat_50.c  Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_50.c  Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_compat_50.c,v 1.29 2015/06/21 08:47:15 martin Exp $   */
+/*     $NetBSD: netbsd32_compat_50.c,v 1.30 2015/07/24 13:02:52 maxv Exp $     */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_50.c,v 1.29 2015/06/21 08:47:15 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_50.c,v 1.30 2015/07/24 13:02:52 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -352,7 +352,7 @@
        } */
        struct netbsd32_timespec50 ts32;
        struct timespec ts;
-       int error = 0;
+       int error;
 
        error = clock_getres1(SCARG(uap, clock_id), &ts);
        if (error != 0)
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/compat/ultrix/ultrix_fs.c
--- a/sys/compat/ultrix/ultrix_fs.c     Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/compat/ultrix/ultrix_fs.c     Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ultrix_fs.c,v 1.54 2013/11/27 17:24:44 christos Exp $  */
+/*     $NetBSD: ultrix_fs.c,v 1.55 2015/07/24 13:02:52 maxv Exp $      */
 
 /*
  * Copyright (c) 1995, 1997 Jonathan Stone
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ultrix_fs.c,v 1.54 2013/11/27 17:24:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ultrix_fs.c,v 1.55 2015/07/24 13:02:52 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -214,7 +214,7 @@
        int skip;
        int start;
        long count, maxcount;
-       int error = 0;
+       int error;
 
        nmp = NULL;     /* XXX keep gcc quiet */
        path = NULL;
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/kern/kern_ntptime.c
--- a/sys/kern/kern_ntptime.c   Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/kern/kern_ntptime.c   Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_ntptime.c,v 1.55 2014/02/25 18:30:11 pooka Exp $  */
+/*     $NetBSD: kern_ntptime.c,v 1.56 2015/07/24 13:02:52 maxv Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
 
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/sys/kern/kern_ntptime.c,v 1.59 2005/05/28 14:34:41 rwatson Exp $"); */
-__KERNEL_RCSID(0, "$NetBSD: kern_ntptime.c,v 1.55 2014/02/25 18:30:11 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ntptime.c,v 1.56 2015/07/24 13:02:52 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ntp.h"
@@ -260,7 +260,7 @@
                syscallarg(struct timex *) tp;
        } */
        struct timex ntv;
-       int error = 0;
+       int error;
 
        error = copyin((void *)SCARG(uap, tp), (void *)&ntv, sizeof(ntv));
        if (error != 0)
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/kern/kern_time.c
--- a/sys/kern/kern_time.c      Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/kern/kern_time.c      Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_time.c,v 1.179 2013/05/22 16:00:52 christos Exp $ */
+/*     $NetBSD: kern_time.c,v 1.180 2015/07/24 13:02:52 maxv Exp $     */
 
 /*-
  * Copyright (c) 2000, 2004, 2005, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.179 2013/05/22 16:00:52 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.180 2015/07/24 13:02:52 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/resourcevar.h>
@@ -238,7 +238,7 @@
                syscallarg(struct timespec *) tp;
        } */
        struct timespec ts;
-       int error = 0;
+       int error;
 
        if ((error = clock_getres1(SCARG(uap, clock_id), &ts)) != 0)
                return error;
@@ -454,7 +454,7 @@
                syscallarg(const struct timeval *) delta;
                syscallarg(struct timeval *) olddelta;
        } */
-       int error = 0;
+       int error;
        struct timeval atv, oldatv;
 
        if ((error = kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_TIME,
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/kern/kern_veriexec.c
--- a/sys/kern/kern_veriexec.c  Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/kern/kern_veriexec.c  Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_veriexec.c,v 1.8 2015/04/27 20:21:19 riastradh Exp $      */
+/*     $NetBSD: kern_veriexec.c,v 1.9 2015/07/24 13:02:52 maxv Exp $   */
 
 /*-
  * Copyright (c) 2005, 2006 Elad Efrat <elad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_veriexec.c,v 1.8 2015/04/27 20:21:19 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_veriexec.c,v 1.9 2015/07/24 13:02:52 maxv Exp $");
 
 #include "opt_veriexec.h"
 
@@ -555,7 +555,7 @@
 {
        size_t hash_len = vfe->ops->hash_len;
        u_char *digest;
-       int error = 0;
+       int error;
 
        digest = kmem_zalloc(hash_len, KM_SLEEP);
 
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/kern/sys_lwp.c
--- a/sys/kern/sys_lwp.c        Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/kern/sys_lwp.c        Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_lwp.c,v 1.56 2013/03/29 01:08:17 christos Exp $    */
+/*     $NetBSD: sys_lwp.c,v 1.57 2015/07/24 13:02:52 maxv Exp $        */
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_lwp.c,v 1.56 2013/03/29 01:08:17 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_lwp.c,v 1.57 2015/07/24 13:02:52 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -134,7 +134,7 @@
                syscallarg(lwpid_t *) new_lwp;
        } */
        struct proc *p = l->l_proc;
-       ucontext_t *newuc = NULL;
+       ucontext_t *newuc;
        lwpid_t lid;
        int error;
 
diff -r 8e82f1f3926d -r bcf5d91f5d7c sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Fri Jul 24 12:29:55 2015 +0000
+++ b/sys/kern/vfs_syscalls.c   Fri Jul 24 13:02:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.499 2015/06/12 19:06:32 dholland Exp $      */
+/*     $NetBSD: vfs_syscalls.c,v 1.500 2015/07/24 13:02:52 maxv Exp $  */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 



Home | Main Index | Thread Index | Old Index