Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Remove redundant ``devsw_ok = false;''



details:   https://anonhg.NetBSD.org/src/rev/d38c32cf7cb8
branches:  trunk
changeset: 368389:d38c32cf7cb8
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Jul 09 01:24:32 2022 +0000

description:
Remove redundant ``devsw_ok = false;''

Thanks mrg@

diffstat:

 sys/dev/pci/nvme_pci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4f248823eaff -r d38c32cf7cb8 sys/dev/pci/nvme_pci.c
--- a/sys/dev/pci/nvme_pci.c    Fri Jul 08 21:51:24 2022 +0000
+++ b/sys/dev/pci/nvme_pci.c    Sat Jul 09 01:24:32 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nvme_pci.c,v 1.35 2022/07/08 17:32:19 pgoyette Exp $   */
+/*     $NetBSD: nvme_pci.c,v 1.36 2022/07/09 01:24:32 pgoyette Exp $   */
 /*     $OpenBSD: nvme_pci.c,v 1.3 2016/04/14 11:18:32 dlg Exp $ */
 
 /*
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvme_pci.c,v 1.35 2022/07/08 17:32:19 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvme_pci.c,v 1.36 2022/07/09 01:24:32 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -506,7 +506,7 @@
                error = devsw_attach(nvme_cd.cd_name, NULL, &bmajor,
                    &nvme_cdevsw, &cmajor);
                if (error) {
-                       devsw_ok = false;
+                       /*XXXPRG devsw_ok = false;*/
                        aprint_error("%s: unable to register devsw, err %d\n",
                            nvme_cd.cd_name, error);
                        /* do not abort, just /dev/nvme* will not work */



Home | Main Index | Thread Index | Old Index