Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Committed a temporary copy with extra lines of code ...



details:   https://anonhg.NetBSD.org/src/rev/974a6cc8da45
branches:  trunk
changeset: 351361:974a6cc8da45
user:      nat <nat%NetBSD.org@localhost>
date:      Fri Feb 10 21:03:15 2017 +0000

description:
Committed a temporary copy with extra lines of code not needed. Opps...

diffstat:

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

diffs (36 lines):

diff -r d85e6075e475 -r 974a6cc8da45 sys/dev/audiobell.c
--- a/sys/dev/audiobell.c       Fri Feb 10 20:56:21 2017 +0000
+++ b/sys/dev/audiobell.c       Fri Feb 10 21:03:15 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audiobell.c,v 1.13 2017/02/10 19:31:42 nat Exp $       */
+/*     $NetBSD: audiobell.c,v 1.14 2017/02/10 21:03:15 nat Exp $       */
 
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/types.h>
-__KERNEL_RCSID(0, "$NetBSD: audiobell.c,v 1.13 2017/02/10 19:31:42 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audiobell.c,v 1.14 2017/02/10 21:03:15 nat Exp $");
 
 #include <sys/audioio.h>
 #include <sys/conf.h>
@@ -42,7 +42,6 @@
 #include <sys/filedesc.h>
 #include <sys/ioctl.h>
 #include <sys/malloc.h>
-#include <sys/mutex.h>
 #include <sys/null.h>
 #include <sys/systm.h>
 #include <sys/uio.h>
@@ -159,9 +158,6 @@
        /* If not configured, we can't beep. */
        if (audiobellopen(audio, FWRITE, 0, NULL, &fp) != EMOVEFD || fp == NULL)
                return;
-       mutex_enter(&fp->f_lock);
-       fp->f_count++;
-       mutex_exit(&fp->f_lock);
 
        if (audioioctl(fp, AUDIO_GETINFO, &ai) != 0) {
                audioclose(fp);



Home | Main Index | Thread Index | Old Index