Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/rockchip Remove a sneaky KASSERT



details:   https://anonhg.NetBSD.org/src/rev/5de409564948
branches:  trunk
changeset: 365355:5de409564948
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Aug 12 17:46:49 2018 +0000

description:
Remove a sneaky KASSERT

diffstat:

 sys/arch/arm/rockchip/rk_usb.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r dd4b672dc07e -r 5de409564948 sys/arch/arm/rockchip/rk_usb.c
--- a/sys/arch/arm/rockchip/rk_usb.c    Sun Aug 12 17:21:35 2018 +0000
+++ b/sys/arch/arm/rockchip/rk_usb.c    Sun Aug 12 17:46:49 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_usb.c,v 1.4 2018/08/12 16:48:05 jmcneill Exp $ */
+/* $NetBSD: rk_usb.c,v 1.5 2018/08/12 17:46:49 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: rk_usb.c,v 1.4 2018/08/12 16:48:05 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_usb.c,v 1.5 2018/08/12 17:46:49 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -221,7 +221,6 @@
        }
 
        clk = fdtbus_clock_get(phandle, "phyclk");
-KASSERT(clk != NULL);
        if (clk && clk_enable(clk) != 0) {
                aprint_error(": couldn't enable phy clock\n");
                return;



Home | Main Index | Thread Index | Old Index