usbd_get_request_status now only returns the value if the associated
pointer is passed.
This commit is contained in:
parent
bc62ec7c7b
commit
a8c6f159f3
@ -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 New Issue
Block a user