usbd_get_request_status now only returns the value if the associated

pointer is passed.
This commit is contained in:
n_hibma 1999-06-01 06:39:03 +00:00
parent bc62ec7c7b
commit a8c6f159f3

View File

@ -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);
}