diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-06-01 06:39:03 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-06-01 06:39:03 +0000 |
commit | a8c6f159f389985cde37b585156b0c0340ca853f (patch) | |
tree | 7d356a4205851feae8eed86e8ffc32a6a4cdac2c /sys/dev/usb/usbdi.c | |
parent | bc62ec7c7bfb73d54ed59d7ff520c8c408a27bcb (diff) | |
download | FreeBSD-src-a8c6f159f389985cde37b585156b0c0340ca853f.zip FreeBSD-src-a8c6f159f389985cde37b585156b0c0340ca853f.tar.gz |
usbd_get_request_status now only returns the value if the associated
pointer is passed.
Diffstat (limited to 'sys/dev/usb/usbdi.c')
-rw-r--r-- | sys/dev/usb/usbdi.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index fa827ce..52497e5 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -366,10 +366,14 @@ usbd_get_request_status(reqh, priv, buffer, count, status) u_int32_t *count; usbd_status *status; { - *priv = reqh->priv; - *buffer = reqh->buffer; - *count = reqh->actlen; - *status = reqh->status; + if (priv) + *priv = reqh->priv; + if (buffer) + *buffer = reqh->buffer; + if (count) + *count = reqh->actlen; + if (status) + *status = reqh->status; return (USBD_NORMAL_COMPLETION); } |