mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 17:49:22 -04:00
usbd_get_request_status now only returns the value if the associated
pointer is passed.
This commit is contained in:
parent
03a6bd91f3
commit
a0557cd697
1 changed files with 8 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue