Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/nouveau Nix vestigial temporary.



details:   https://anonhg.NetBSD.org/src/rev/2d65f9a10f2f
branches:  trunk
changeset: 835245:2d65f9a10f2f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 13:39:07 2018 +0000

description:
Nix vestigial temporary.

diffstat:

 sys/external/bsd/drm2/nouveau/nouveau_pci.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 931c7ac53fa0 -r 2d65f9a10f2f sys/external/bsd/drm2/nouveau/nouveau_pci.c
--- a/sys/external/bsd/drm2/nouveau/nouveau_pci.c       Mon Aug 27 13:38:51 2018 +0000
+++ b/sys/external/bsd/drm2/nouveau/nouveau_pci.c       Mon Aug 27 13:39:07 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_pci.c,v 1.14 2018/08/27 07:56:25 riastradh Exp $       */
+/*     $NetBSD: nouveau_pci.c,v 1.15 2018/08/27 13:39:07 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_pci.c,v 1.14 2018/08/27 07:56:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_pci.c,v 1.15 2018/08/27 13:39:07 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/device.h>
@@ -133,7 +133,6 @@
 {
        struct nouveau_pci_softc *const sc = device_private(self);
        const struct pci_attach_args *const pa = aux;
-       uint64_t devname;
        int error;
 
        pci_aprint_devinfo(pa, NULL);
@@ -147,8 +146,6 @@
        sc->sc_task_state = NOUVEAU_TASK_ATTACH;
        SIMPLEQ_INIT(&sc->sc_task_u.attach);
 
-       devname = (uint64_t)device_unit(device_parent(self)) << 32;
-       devname |= pa->pa_bus << 16;
        /* XXX errno Linux->NetBSD */
        error = -nvkm_device_pci_new(&sc->sc_pci_dev,
            nouveau_config, nouveau_debug, true, true, ~0ULL,



Home | Main Index | Thread Index | Old Index