Source-Changes-HG archive

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

[src/trunk]: src/sys Remove assigned-to but not used variable.



details:   https://anonhg.NetBSD.org/src/rev/238273f558ca
branches:  trunk
changeset: 543324:238273f558ca
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Feb 23 04:20:06 2003 +0000

description:
Remove assigned-to but not used variable.

diffstat:

 sys/dev/usb/uaudio.c           |  7 +++----
 sys/dev/usb/uftdi.c            |  7 +++----
 sys/dev/usb/umct.c             |  7 +++----
 sys/miscfs/fdesc/fdesc_vnops.c |  7 +++----
 sys/net/if_gre.c               |  6 ++----
 5 files changed, 14 insertions(+), 20 deletions(-)

diffs (171 lines):

diff -r 6c5c2fd13128 -r 238273f558ca sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c      Sun Feb 23 04:19:26 2003 +0000
+++ b/sys/dev/usb/uaudio.c      Sun Feb 23 04:20:06 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uaudio.c,v 1.63 2003/02/16 18:16:07 augustss Exp $     */
+/*     $NetBSD: uaudio.c,v 1.64 2003/02/23 04:20:06 simonb Exp $       */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.63 2003/02/16 18:16:07 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.64 2003/02/23 04:20:06 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1221,7 +1221,6 @@
 uaudio_identify_as(struct uaudio_softc *sc, usb_config_descriptor_t *cdesc)
 {
        usb_interface_descriptor_t *id;
-       usbd_status err;
        char *buf;
        int size, offs;
 
@@ -1245,7 +1244,7 @@
                        sc->sc_nullalt = id->bAlternateSetting;
                        break;
                case 1:
-                       err = uaudio_process_as(sc, buf, &offs, size, id);
+                       uaudio_process_as(sc, buf, &offs, size, id);
                        break;
                default:
 #ifdef UAUDIO_DEBUG
diff -r 6c5c2fd13128 -r 238273f558ca sys/dev/usb/uftdi.c
--- a/sys/dev/usb/uftdi.c       Sun Feb 23 04:19:26 2003 +0000
+++ b/sys/dev/usb/uftdi.c       Sun Feb 23 04:20:06 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uftdi.c,v 1.13 2002/09/23 05:51:23 simonb Exp $        */
+/*     $NetBSD: uftdi.c,v 1.14 2003/02/23 04:20:07 simonb Exp $        */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.13 2002/09/23 05:51:23 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.14 2003/02/23 04:20:07 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -280,12 +280,11 @@
 uftdi_detach(device_ptr_t self, int flags)
 {
        struct uftdi_softc *sc = (struct uftdi_softc *)self;
-       int rv = 0;
 
        DPRINTF(("uftdi_detach: sc=%p flags=%d\n", sc, flags));
        sc->sc_dying = 1;
        if (sc->sc_subdev != NULL) {
-               rv = config_detach(sc->sc_subdev, flags);
+               config_detach(sc->sc_subdev, flags);
                sc->sc_subdev = NULL;
        }
 
diff -r 6c5c2fd13128 -r 238273f558ca sys/dev/usb/umct.c
--- a/sys/dev/usb/umct.c        Sun Feb 23 04:19:26 2003 +0000
+++ b/sys/dev/usb/umct.c        Sun Feb 23 04:20:06 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umct.c,v 1.9 2002/09/23 05:51:23 simonb Exp $  */
+/*     $NetBSD: umct.c,v 1.10 2003/02/23 04:20:07 simonb Exp $ */
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umct.c,v 1.9 2002/09/23 05:51:23 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umct.c,v 1.10 2003/02/23 04:20:07 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -588,7 +588,7 @@
 {
        struct umct_softc *sc = priv;
        u_char *buf = sc->sc_intr_buf;
-       u_char mstatus, lstatus;
+       u_char mstatus;
 
        if (sc->sc_dying)
                return;
@@ -608,7 +608,6 @@
 
        sc->sc_lsr = sc->sc_msr = 0;
        mstatus = buf[0];
-       lstatus = buf[1];
        if (ISSET(mstatus, MSR_DSR))
                sc->sc_msr |= UMSR_DSR;
        if (ISSET(mstatus, MSR_DCD))
diff -r 6c5c2fd13128 -r 238273f558ca sys/miscfs/fdesc/fdesc_vnops.c
--- a/sys/miscfs/fdesc/fdesc_vnops.c    Sun Feb 23 04:19:26 2003 +0000
+++ b/sys/miscfs/fdesc/fdesc_vnops.c    Sun Feb 23 04:20:06 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fdesc_vnops.c,v 1.71 2002/10/23 09:14:33 jdolecek Exp $        */
+/*     $NetBSD: fdesc_vnops.c,v 1.72 2003/02/23 04:25:59 simonb Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdesc_vnops.c,v 1.71 2002/10/23 09:14:33 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdesc_vnops.c,v 1.72 2003/02/23 04:25:59 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -628,7 +628,6 @@
                struct proc *a_p;
        } */ *ap = v;
        struct filedesc *fdp = ap->a_p->p_fd;
-       struct file *fp;
        unsigned fd;
 
        /*
@@ -646,7 +645,7 @@
        }
 
        fd = VTOFDESC(ap->a_vp)->fd_fd;
-       if ((fp = fd_getfile(fdp, fd)) == NULL)
+       if (fd_getfile(fdp, fd) == NULL)
                return (EBADF);
 
        /*
diff -r 6c5c2fd13128 -r 238273f558ca sys/net/if_gre.c
--- a/sys/net/if_gre.c  Sun Feb 23 04:19:26 2003 +0000
+++ b/sys/net/if_gre.c  Sun Feb 23 04:20:06 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_gre.c,v 1.43 2003/01/04 23:43:05 wiz Exp $ */
+/*     $NetBSD: if_gre.c,v 1.44 2003/02/23 04:28:10 simonb Exp $ */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_gre.c,v 1.43 2003/01/04 23:43:05 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gre.c,v 1.44 2003/02/23 04:28:10 simonb Exp $");
 
 #include "opt_inet.h"
 #include "opt_ns.h"
@@ -188,7 +188,6 @@
        struct gre_softc *sc = ifp->if_softc;
        struct greip *gh;
        struct ip *ip;
-       u_char osrc;
        u_short etype = 0;
        struct mobile_h mob_h;
 
@@ -201,7 +200,6 @@
 
        gh = NULL;
        ip = NULL;
-       osrc = 0;
 
 #if NBPFILTER >0
        if (ifp->if_bpf) {



Home | Main Index | Thread Index | Old Index