Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb url(4): Inline call to url_uno_stop -- alias for...



details:   https://anonhg.NetBSD.org/src/rev/993e5e37836b
branches:  trunk
changeset: 362548:993e5e37836b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Mar 03 05:55:45 2022 +0000

description:
url(4): Inline call to url_uno_stop -- alias for url_reset.

diffstat:

 sys/dev/usb/if_url.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r aacff5bb462e -r 993e5e37836b sys/dev/usb/if_url.c
--- a/sys/dev/usb/if_url.c      Thu Mar 03 05:55:38 2022 +0000
+++ b/sys/dev/usb/if_url.c      Thu Mar 03 05:55:45 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_url.c,v 1.93 2022/03/03 05:55:29 riastradh Exp $    */
+/*     $NetBSD: if_url.c,v 1.94 2022/03/03 05:55:45 riastradh Exp $    */
 
 /*
  * Copyright (c) 2001, 2002
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_url.c,v 1.93 2022/03/03 05:55:29 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_url.c,v 1.94 2022/03/03 05:55:45 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -370,8 +370,7 @@
 
        DPRINTF(("%s: %s: enter\n", device_xname(un->un_dev), __func__));
 
-       /* Cancel pending I/O and free all TX/RX buffers */
-       url_uno_stop(ifp, 1);
+       url_reset(un);
 
        eaddr = CLLADDR(ifp->if_sadl);
        for (i = 0; i < ETHER_ADDR_LEN; i++)



Home | Main Index | Thread Index | Old Index