Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/specfs Remove unused specdev member sd_rdev.



details:   https://anonhg.NetBSD.org/src/rev/eaf1ae996578
branches:  trunk
changeset: 374426:eaf1ae996578
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Apr 22 14:30:16 2023 +0000

description:
Remove unused specdev member sd_rdev.

Ride 10.99.4

diffstat:

 sys/miscfs/specfs/spec_vnops.c |  5 ++---
 sys/miscfs/specfs/specdev.h    |  3 +--
 2 files changed, 3 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r a86d9bb83f9e -r eaf1ae996578 sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c    Sat Apr 22 14:23:59 2023 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c    Sat Apr 22 14:30:16 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spec_vnops.c,v 1.216 2022/10/15 15:20:46 riastradh Exp $       */
+/*     $NetBSD: spec_vnops.c,v 1.217 2023/04/22 14:30:16 hannken Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.216 2022/10/15 15:20:46 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.217 2023/04/22 14:30:16 hannken Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -397,7 +397,6 @@ spec_node_init(vnode_t *vp, dev_t rdev)
        }
        if (vp2 == NULL) {
                /* No existing record, create a new one. */
-               sd->sd_rdev = rdev;
                sd->sd_mountpoint = NULL;
                sd->sd_lockf = NULL;
                sd->sd_refcnt = 1;
diff -r a86d9bb83f9e -r eaf1ae996578 sys/miscfs/specfs/specdev.h
--- a/sys/miscfs/specfs/specdev.h       Sat Apr 22 14:23:59 2023 +0000
+++ b/sys/miscfs/specfs/specdev.h       Sat Apr 22 14:30:16 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specdev.h,v 1.53 2022/10/26 23:40:08 riastradh Exp $   */
+/*     $NetBSD: specdev.h,v 1.54 2023/04/22 14:30:16 hannken Exp $     */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -77,7 +77,6 @@ typedef struct specdev {
        vnode_t         *sd_bdevvp;
        u_int           sd_opencnt;     /* # of opens; close when ->0 */
        u_int           sd_refcnt;      /* # of specnodes referencing this */
-       dev_t           sd_rdev;
        volatile u_int  sd_iocnt;       /* # bdev/cdev_* operations active */
        bool            sd_opened;      /* true if successfully opened */
        bool            sd_closing;     /* true when bdev/cdev_close ongoing */



Home | Main Index | Thread Index | Old Index