Source-Changes-HG archive

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

[src/trunk]: src/sys/dev remove unused variables



details:   https://anonhg.NetBSD.org/src/rev/9387011f6bfd
branches:  trunk
changeset: 790586:9387011f6bfd
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 17 21:19:40 2013 +0000

description:
remove unused variables

diffstat:

 sys/dev/sequencer.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r 3366fa9aabce -r 9387011f6bfd sys/dev/sequencer.c
--- a/sys/dev/sequencer.c       Thu Oct 17 21:18:43 2013 +0000
+++ b/sys/dev/sequencer.c       Thu Oct 17 21:19:40 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sequencer.c,v 1.56 2013/04/27 22:12:42 christos Exp $  */
+/*     $NetBSD: sequencer.c,v 1.57 2013/10/17 21:19:40 christos Exp $  */
 
 /*
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sequencer.c,v 1.56 2013/04/27 22:12:42 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sequencer.c,v 1.57 2013/10/17 21:19:40 christos Exp $");
 
 #include "sequencer.h"
 
@@ -1427,12 +1427,6 @@
 static void
 midiseq_close(struct midi_dev *md)
 {
-       int major;
-       dev_t dev;
-       
-       major = devsw_name2chr("midi", NULL, 0);
-       dev = makedev(major, md->unit);
-
        DPRINTFN(2, ("midiseq_close: %d\n", md->unit));
        (void)vn_close(md->vp, 0, kauth_cred_get());
        kmem_free(md, sizeof(*md));



Home | Main Index | Thread Index | Old Index