20 Jul
2013
20 Jul
'13
3:30 p.m.
Eldad Zack wrote:
Move the vendor ID check to the outside and also propogate the error code.
- if (...
search_roland_implicit_fb(subs->dev, altsd->bInterfaceNumber + 1,
altsd->bAlternateSetting,
&alts, &ep) >= 0) {
goto add_sync_ep;
int err = search_roland_implicit_fb(subs->dev, altsd->bInterfaceNumber + 1,
altsd->bAlternateSetting,
&alts, &ep);
if (err < 0)
return err;
goto add_sync_ep;
The error code change is not a refactoring, but a logic change.
In this case, a nonexistent feedback endpoint should not be considered a fatal error.
Regards, Clemens