Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/imx/fdt Remove unnecessary code.



details:   https://anonhg.NetBSD.org/src/rev/fea1b4ee0337
branches:  trunk
changeset: 846939:fea1b4ee0337
user:      hkenken <hkenken%NetBSD.org@localhost>
date:      Thu Dec 05 00:31:14 2019 +0000

description:
Remove unnecessary code.

diffstat:

 sys/arch/arm/imx/fdt/imx6_pcie.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r e90da5796549 -r fea1b4ee0337 sys/arch/arm/imx/fdt/imx6_pcie.c
--- a/sys/arch/arm/imx/fdt/imx6_pcie.c  Wed Dec 04 23:35:36 2019 +0000
+++ b/sys/arch/arm/imx/fdt/imx6_pcie.c  Thu Dec 05 00:31:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: imx6_pcie.c,v 1.5 2019/10/16 11:16:30 hkenken Exp $    */
+/*     $NetBSD: imx6_pcie.c,v 1.6 2019/12/05 00:31:14 hkenken Exp $    */
 /*-
  * Copyright (c) 2019 Genetec Corporation.  All rights reserved.
  * Written by Hashimoto Kenichi for Genetec Corporation.
@@ -25,7 +25,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imx6_pcie.c,v 1.5 2019/10/16 11:16:30 hkenken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imx6_pcie.c,v 1.6 2019/12/05 00:31:14 hkenken Exp $");
 
 #include "opt_pci.h"
 #include "opt_fdt.h"
@@ -204,10 +204,6 @@
                sc->sc_clk_pcie_ext_src = NULL;
        }
 
-
-       TAILQ_INIT(&sc->sc_intrs);
-       mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_VM);
-
        if (!fdtbus_intr_str(phandle, 0, intrstr, sizeof(intrstr))) {
                aprint_error_dev(self, "failed to decode interrupt\n");
                return;



Home | Main Index | Thread Index | Old Index