if (status)
return;
- /* The size has to be more then just an "empty" transfer */
- if (urb->actual_length <= 2) {
- dev_err(dev, "%s: \"short\" cport in transfer of %d bytes?\n",
- __func__, urb->actual_length);
+ /* The size has to be at least one, for the cport id */
+ if (!urb->actual_length) {
+ dev_err(dev, "%s: no cport id in input buffer?\n", __func__);
goto exit;
}
unsigned long flags;
int i;
- /* If no error, tell the core the gbuf is properly sent */
- if (!check_urb_status(urb))
- greybus_gbuf_finished(gbuf);
-
/*
* See if this was an urb in our pool, if so mark it "free", otherwise
* we need to free it ourselves.