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 Add missing return in error path



details:   https://anonhg.NetBSD.org/src/rev/19b5860dcf98
branches:  trunk
changeset: 362678:19b5860dcf98
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jun 20 20:12:51 2018 +0000

description:
Add missing return in error path

diffstat:

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

diffs (26 lines):

diff -r cc60dab8d7c3 -r 19b5860dcf98 sys/arch/arm/rockchip/rk_usb.c
--- a/sys/arch/arm/rockchip/rk_usb.c    Wed Jun 20 19:11:01 2018 +0000
+++ b/sys/arch/arm/rockchip/rk_usb.c    Wed Jun 20 20:12:51 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_usb.c,v 1.1 2018/06/16 00:19:04 jmcneill Exp $ */
+/* $NetBSD: rk_usb.c,v 1.2 2018/06/20 20:12:51 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.1 2018/06/16 00:19:04 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_usb.c,v 1.2 2018/06/20 20:12:51 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -174,6 +174,7 @@
 
        if (fdtbus_get_reg(OF_parent(phandle), 0, &grf_addr, NULL) != 0) {
                aprint_error(": couldn't get grf registers\n");
+               return;
        }
        if (fdtbus_get_reg(phandle, 0, &phy_addr, &phy_size) != 0) {
                aprint_error(": couldn't get phy registers\n");



Home | Main Index | Thread Index | Old Index