Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Use usbd_destroy_xfer() in usbd_request_async() ...



details:   https://anonhg.NetBSD.org/src/rev/89123c6ba973
branches:  trunk
changeset: 972203:89123c6ba973
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue May 19 18:32:35 2020 +0000

description:
Use usbd_destroy_xfer() in usbd_request_async() instead of usbd_free_xfer().

The only user of usbd_request_async() & co. does a usbd_create_xfer(), so use
the correct deconstructor.

diffstat:

 sys/dev/usb/usbdi.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 10ea1589e212 -r 89123c6ba973 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Tue May 19 18:18:33 2020 +0000
+++ b/sys/dev/usb/usbdi.c       Tue May 19 18:32:35 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi.c,v 1.201 2020/05/15 06:15:42 skrll Exp $        */
+/*     $NetBSD: usbdi.c,v 1.202 2020/05/19 18:32:35 jakllsch Exp $     */
 
 /*
  * Copyright (c) 1998, 2012, 2015 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.201 2020/05/15 06:15:42 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.202 2020/05/19 18:32:35 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1243,7 +1243,7 @@
 static void
 usbd_request_async_cb(struct usbd_xfer *xfer, void *priv, usbd_status status)
 {
-       usbd_free_xfer(xfer);
+       usbd_destroy_xfer(xfer);
 }
 
 /*
@@ -1264,7 +1264,7 @@
            callback);
        err = usbd_transfer(xfer);
        if (err != USBD_IN_PROGRESS) {
-               usbd_free_xfer(xfer);
+               usbd_destroy_xfer(xfer);
                return (err);
        }
        return (USBD_NORMAL_COMPLETION);



Home | Main Index | Thread Index | Old Index