Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pad pad(4): Omit unused sc_blksize.



details:   https://anonhg.NetBSD.org/src/rev/39123708e787
branches:  trunk
changeset: 1021720:39123708e787
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Jun 14 18:44:45 2021 +0000

description:
pad(4): Omit unused sc_blksize.

diffstat:

 sys/dev/pad/pad.c    |  5 ++---
 sys/dev/pad/padvar.h |  3 +--
 2 files changed, 3 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 2479916c0b24 -r 39123708e787 sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Mon Jun 14 18:44:37 2021 +0000
+++ b/sys/dev/pad/pad.c Mon Jun 14 18:44:45 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.73 2021/06/14 18:44:37 riastradh Exp $ */
+/* $NetBSD: pad.c,v 1.74 2021/06/14 18:44:45 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.73 2021/06/14 18:44:37 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.74 2021/06/14 18:44:45 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -533,7 +533,6 @@
 
        sc->sc_intr = intr;
        sc->sc_intrarg = intrarg;
-       sc->sc_blksize = blksize;
 
        DPRINTF("%s: blksize=%d\n", __func__, blksize);
        err = pad_add_block(sc, block, blksize);
diff -r 2479916c0b24 -r 39123708e787 sys/dev/pad/padvar.h
--- a/sys/dev/pad/padvar.h      Mon Jun 14 18:44:37 2021 +0000
+++ b/sys/dev/pad/padvar.h      Mon Jun 14 18:44:45 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: padvar.h,v 1.15 2021/06/14 10:14:46 riastradh Exp $ */
+/* $NetBSD: padvar.h,v 1.16 2021/06/14 18:44:45 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -49,7 +49,6 @@
        callout_t       sc_pcallout;
 
        device_t        sc_audiodev;
-       int             sc_blksize;
 
 #define PAD_BUFSIZE    65536
        uint8_t         sc_audiobuf[PAD_BUFSIZE];



Home | Main Index | Thread Index | Old Index