Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb fix a think-o in the previous: don't return when...



details:   https://anonhg.NetBSD.org/src/rev/8cc644443fd0
branches:  trunk
changeset: 463324:8cc644443fd0
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Aug 18 09:46:58 2019 +0000

description:
fix a think-o in the previous: don't return when saving the first error.
from skrll@.

diffstat:

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

diffs (27 lines):

diff -r bcb4065beae1 -r 8cc644443fd0 sys/dev/usb/usbnet.c
--- a/sys/dev/usb/usbnet.c      Sun Aug 18 09:43:26 2019 +0000
+++ b/sys/dev/usb/usbnet.c      Sun Aug 18 09:46:58 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbnet.c,v 1.17 2019/08/18 09:29:38 mrg Exp $  */
+/*     $NetBSD: usbnet.c,v 1.18 2019/08/18 09:46:58 mrg Exp $  */
 
 /*
  * Copyright (c) 2019 Matthew R. Green
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.17 2019/08/18 09:29:38 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.18 2019/08/18 09:46:58 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -725,7 +725,7 @@
                        continue;
                usbd_status err2 = usbd_abort_pipe(unp->unp_ep[i]);
                if (err == USBD_NORMAL_COMPLETION && err2)
-                       return err = err2;
+                       err = err2;
        }
 
        return err;



Home | Main Index | Thread Index | Old Index